Răsfoiți Sursa

added default option

Daniel Gibbs 10 ani în urmă
părinte
comite
621c3d7cde
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      lgsm/functions/command_console.sh

+ 1 - 1
lgsm/functions/command_console.sh

@@ -38,7 +38,7 @@ else
 	fn_script_log_error "Failed to access: Server not running"
 	fn_script_log_error "Failed to access: Server not running"
 	sleep 1
 	sleep 1
 	while true; do
 	while true; do
-		read -p "Do you want to start the server? [y/N]" yn
+		read -e -i "y" -p  "Do you want to start the server? [Y/n]" yn
 		case $yn in
 		case $yn in
 		[Yy]* ) exitbypass=1; command_start.sh; break;;
 		[Yy]* ) exitbypass=1; command_start.sh; break;;
 		[Nn]* ) break;;
 		[Nn]* ) break;;