Просмотр исходного кода

Removed the chance of infinite loop

Removed the chance of infinite loop if no appmanifest files found #383
Daniel Gibbs 11 лет назад
Родитель
Сommit
a882e2f16b
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      functions/fn_update_check

+ 6 - 0
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