Parcourir la source

re ordered if statements

Daniel Gibbs il y a 10 ans
Parent
commit
5b10275c45
1 fichiers modifiés avec 5 ajouts et 6 suppressions
  1. 5 6
      lgsm/functions/install_server_files.sh

+ 5 - 6
lgsm/functions/install_server_files.sh

@@ -90,16 +90,15 @@ echo ""
 echo "Installing ${gamename} Server"
 echo "================================="
 sleep 1
-if [ -n "${appid}" ]; then
-	fn_install_server_files_steamcmd
-fi
 
-if [ -z "${appid}" ]||[ "${gamename}" == "GoldenEye: Source" ]; then
+if [ "${gamename}" == "Teamspeak 3" ]; then
+	update_ts3.sh
+elif [ -z "${appid}" ]||[ "${gamename}" == "GoldenEye: Source" ]; then
 	fn_install_server_files
 fi
 
-if [ "${gamename}" == "Teamspeak 3" ]; then
-	update_ts3.sh
+if [ -n "${appid}" ]; then
+	fn_install_server_files_steamcmd
 fi
 
 if [ -z "${autoinstall}" ]; then