Przeglądaj źródła

fixed syntax errors

UltimateByte 9 lat temu
rodzic
commit
7afef2a16e
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      lgsm/functions/check_steamcmd.sh

+ 3 - 3
lgsm/functions/check_steamcmd.sh

@@ -18,14 +18,14 @@ fn_install_steamcmd(){
 fn_check_steamcmd_user(){
 fn_check_steamcmd_user(){
 	# Checks if steamuser is setup.
 	# Checks if steamuser is setup.
 	if [ "${steamuser}" == "username" ]; then
 	if [ "${steamuser}" == "username" ]; then
-		if [ "${legacymode}" == "1" ] then
+		if [ "${legacymode}" == "1" ]; then
 			fn_print_fail_nl "Steam login not set. Update steamuser in ${selfname}"
 			fn_print_fail_nl "Steam login not set. Update steamuser in ${selfname}"
 		else
 		else
 			fn_print_fail_nl "Steam login not set. Update steamuser in ${configdirserver}"
 			fn_print_fail_nl "Steam login not set. Update steamuser in ${configdirserver}"
 		fi
 		fi
 		echo "	* Change steamuser=\"username\" to a valid steam login."
 		echo "	* Change steamuser=\"username\" to a valid steam login."
 		if [ -d "${lgsmlogdir}" ]; then
 		if [ -d "${lgsmlogdir}" ]; then
-			if [ "${legacymode}" == "1" ] then
+			if [ "${legacymode}" == "1" ]; then
 				fn_script_log_fatal "Steam login not set. Update steamuser in ${selfname}"
 				fn_script_log_fatal "Steam login not set. Update steamuser in ${selfname}"
 			else
 			else
 				fn_script_log_fatal "Steam login not set. Update steamuser in ${configdirserver}"
 				fn_script_log_fatal "Steam login not set. Update steamuser in ${configdirserver}"
@@ -62,4 +62,4 @@ fn_check_steamcmd_sh(){
 }
 }
 
 
 fn_check_steamcmd_user
 fn_check_steamcmd_user
-fn_check_steamcmd_sh
+fn_check_steamcmd_sh