Sfoglia il codice sorgente

When we say exit we should exit

Felix Beckmann 10 anni fa
parent
commit
61a17c2b34
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      functions/command_ts3_server_pass.sh

+ 2 - 2
functions/command_ts3_server_pass.sh

@@ -24,7 +24,7 @@ while true; do
 	read -e -i "y" -p "Continue? [y/N]" yn
 	case $yn in
 	[Yy]* ) break;;
-	[Nn]* ) echo Exiting; return;;
+	[Nn]* ) echo Exiting; exit;;
 	* ) echo "Please answer yes or no.";;
 esac
 done
@@ -59,4 +59,4 @@ if [ "${ts3status}" == "Server is running" ]; then
 	command_start.sh
 else
 	fn_serveradmin_password_set
-fi
+fi