From a882e2f16bd70f38847fab8ce513f872ba724b91 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 19 May 2015 20:41:59 +0100 Subject: [PATCH] Removed the chance of infinite loop Removed the chance of infinite loop if no appmanifest files found #383 --- functions/fn_update_check | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functions/fn_update_check b/functions/fn_update_check index 0ff141e45..cf822f539 100644 --- a/functions/fn_update_check +++ b/functions/fn_update_check @@ -53,6 +53,12 @@ if [ "${appmanifestfilewc}" -ge "2" ]; then fn_update_check fi elif [ "${appmanifestfilewc}" -eq "0" ]; then + if [ "${forceupdate}" -eq "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 + fi + forceupdate=1 fn_printwarn "No appmanifest_${appid}.acf found" fn_scriptlog "Warning! No appmanifest_${appid}.acf found" sleep 2