From 78706e466d28c2c5c8b090b3bc87e78c744d68e4 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 12 Mar 2018 23:34:10 +0000 Subject: [PATCH] altered sleep timings --- lgsm/functions/update_minecraft.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lgsm/functions/update_minecraft.sh b/lgsm/functions/update_minecraft.sh index 930c1700b..5fb3fa648 100644 --- a/lgsm/functions/update_minecraft.sh +++ b/lgsm/functions/update_minecraft.sh @@ -70,12 +70,10 @@ fn_update_currentbuild(){ fn_update_availablebuild(){ # Gets latest build info. availablebuild=$(${curlpath} -s "https://launchermeta.mojang.com/mc/game/version_manifest.json" | sed -e 's/^.*"release":"\([^"]*\)".*$/\1/') - sleep 1 - # Checks if availablebuild variable has been set if [ -z "${availablebuild}" ]; then fn_print_fail "Checking for update: mojang.com" - sleep 1 + sleep 0.5 fn_print_fail "Checking for update: mojang.com: Not returning version info" fn_script_log_fatal "Failure! Checking for update: mojang.com: Not returning version info" core_exit.sh @@ -84,7 +82,7 @@ fn_update_availablebuild(){ else fn_print_ok_nl "Checking for update: mojang.com" fn_script_log_pass "Checking for update: mojang.com" - sleep 1 + sleep 0.5 fi }