From 5acec77bfc1c5c2946901af2d748e774d9bf00c4 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 27 Sep 2021 23:39:09 +0100 Subject: [PATCH] move if --- lgsm/functions/check_deps.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lgsm/functions/check_deps.sh b/lgsm/functions/check_deps.sh index 437d12af0..7f70ab59d 100755 --- a/lgsm/functions/check_deps.sh +++ b/lgsm/functions/check_deps.sh @@ -256,7 +256,11 @@ fn_deps_detector(){ fi # Outcome of Check. - if [ "${depstatus}" == "0" ]; then + + if [ "${steamcmdstatus}" == "1" ]; then + # If SteamCMD is not available in repo dont check for it. + : + elif [ "${depstatus}" == "0" ]; then # If dependency is found. missingdep=0 if [ "${commandname}" == "INSTALL" ]; then @@ -277,9 +281,6 @@ fn_deps_detector(){ steamcmdfail=1 fi done - # If SteamCMD is not available in repo dont check for it. - elif [ "${steamcmdstatus}" == "1" ]; then - : fi fi unset depstatus