From 75c9710a997362525016ddec8542844f388ddfc0 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 1 Nov 2015 23:46:11 +0000 Subject: [PATCH] fixed if statement error --- functions/fn_update_check | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/fn_update_check b/functions/fn_update_check index 443a88f1c..8ccda2105 100644 --- a/functions/fn_update_check +++ b/functions/fn_update_check @@ -2,7 +2,7 @@ # LGSM fn_update_check function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 311015 +# Version: 011115 # Description: Checks if a server update is available. @@ -53,7 +53,7 @@ if [ "${appmanifestfilewc}" -ge "2" ]; then fn_update_check fi elif [ "${appmanifestfilewc}" -eq "0" ]; then - if [ "${forceupdate}" -eq "1" ]; then + if [ "${forceupdate}" == "1" ]; then fn_printfail "Still no appmanifest_${appid}.acf found: Unable to update" fn_scriptlog "Warning! Still no appmanifest_${appid}.acf found: Unable to update" exit 1 @@ -135,7 +135,7 @@ else sleep 1 fi -if [ "${currentbuild}" -ne "${availablebuild}" ]; then +if [ "${currentbuild}" != "${availablebuild}" ]; then echo -e "\n" echo -e "Update available:" sleep 1