Quellcode durchsuchen

fix prompt & contrib

UltimateByte vor 9 Jahren
Ursprung
Commit
53862daa9c
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      lgsm/functions/command_backup.sh

+ 2 - 1
lgsm/functions/command_backup.sh

@@ -1,6 +1,7 @@
 #!/bin/bash
 #!/bin/bash
 # LGSM command_backup.sh function
 # LGSM command_backup.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
+# Contributor: UltimateByte
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 # Description: Creates a .tar.gz file in the backup directory.
 # Description: Creates a .tar.gz file in the backup directory.
 
 
@@ -171,7 +172,7 @@ fn_backup_clearing(){
 			fn_script_log "${backupclearcount} backups older than ${backupdays} days can be cleared"
 			fn_script_log "${backupclearcount} backups older than ${backupdays} days can be cleared"
 			if [ "${backupnoprompt}" != "1" ]; then
 			if [ "${backupnoprompt}" != "1" ]; then
 				while true; do
 				while true; do
-					read -p -e"Clear older backups? [Y/N]" yn
+					read -e -p "Clear older backups? [Y/N]" yn
 					case $yn in
 					case $yn in
 					[Yy]* ) clearoldbackups="yes"; break;;
 					[Yy]* ) clearoldbackups="yes"; break;;
 					[Nn]* ) clearoldbackups="no"; fn_script_log "Not clearing backups"; break;;
 					[Nn]* ) clearoldbackups="no"; fn_script_log "Not clearing backups"; break;;