Browse Source

fixed if statement error

pull/548/head
Daniel Gibbs 10 years ago
parent
commit
75c9710a99
  1. 6
      functions/fn_update_check

6
functions/fn_update_check

@ -2,7 +2,7 @@
# LGSM fn_update_check function # LGSM fn_update_check function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
# Version: 311015 # Version: 011115
# Description: Checks if a server update is available. # Description: Checks if a server update is available.
@ -53,7 +53,7 @@ if [ "${appmanifestfilewc}" -ge "2" ]; then
fn_update_check fn_update_check
fi fi
elif [ "${appmanifestfilewc}" -eq "0" ]; then 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_printfail "Still no appmanifest_${appid}.acf found: Unable to update"
fn_scriptlog "Warning! Still no appmanifest_${appid}.acf found: Unable to update" fn_scriptlog "Warning! Still no appmanifest_${appid}.acf found: Unable to update"
exit 1 exit 1
@ -135,7 +135,7 @@ else
sleep 1 sleep 1
fi fi
if [ "${currentbuild}" -ne "${availablebuild}" ]; then if [ "${currentbuild}" != "${availablebuild}" ]; then
echo -e "\n" echo -e "\n"
echo -e "Update available:" echo -e "Update available:"
sleep 1 sleep 1

Loading…
Cancel
Save