|
|
@@ -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
|
|
|
}
|