فهرست منبع

Fixed issue #260

On retry counter=11 rather than 0. Changed the loop and resets counter
to 0 on retry
Daniel Gibbs 11 سال پیش
والد
کامیت
583da2fe0b
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      functions/fn_steaminstall

+ 4 - 2
functions/fn_steaminstall

@@ -2,10 +2,11 @@
 # LGSM fn_steaminstall function
 # Author: Daniel Gibbs
 # Website: http://danielgibbs.co.uk
-# Version: 040115
+# Version: 060115
 
 fn_steaminstallcommand(){
-while [ -z "${counter}" ]||[ "$(grep -wc 0x402 .fn_steaminstall.tmp)" -ge "1" ]||[ "$(grep -wc 0x406 .fn_steaminstall.tmp)" -ge "1" ]||[ "$(grep -wc 0x6 .fn_steaminstall.tmp)" -ge "1" ]||[ "$(grep -wc 0x106 .fn_steaminstall.tmp)" -ge "1" ]; do
+counter="0"
+while [ "${counter}" == "0" ]||[ "$(grep -wc 0x402 .fn_steaminstall.tmp)" -ge "1" ]||[ "$(grep -wc 0x406 .fn_steaminstall.tmp)" -ge "1" ]||[ "$(grep -wc 0x6 .fn_steaminstall.tmp)" -ge "1" ]||[ "$(grep -wc 0x106 .fn_steaminstall.tmp)" -ge "1" ]; do
 	counter=$((counter+1))
 	if [ "${counter}" -le "10" ]; then
 		if [ "${counter}" -ge "2" ]; then
@@ -16,6 +17,7 @@ while [ -z "${counter}" ]||[ "$(grep -wc 0x402 .fn_steaminstall.tmp)" -ge "1" ]|
 		fn_printfailurenl "SteamCMD did not complete the download, too many retrys"
 		break
 	fi
+	echo "0x402" > .fn_steaminstall.tmp
 done
 rm -f .fn_steaminstall.tmp
 }