Browse Source
refactor: simplify sleep time function call
The code changes refactor the sleep time function call in the check_deps.sh file. Instead of calling fn_sleep_time_1, it now calls fn_sleep_time. This change simplifies the code and improves readability.
pull/4339/head
Daniel Gibbs
2 years ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
1 changed files with
2 additions and
2 deletions
lgsm/modules/check_deps.sh
@ -306,14 +306,14 @@ fn_deps_detector() {
missingdep = 0
missingdep = 0
if [ " ${ commandname } " = = "INSTALL" ] ; then
if [ " ${ commandname } " = = "INSTALL" ] ; then
echo -e " ${ green } ${ deptocheck } ${ default } "
echo -e " ${ green } ${ deptocheck } ${ default } "
fn_sleep_time_1
fn_sleep_time
fi
fi
elif [ " ${ depstatus } " != "0" ] ; then
elif [ " ${ depstatus } " != "0" ] ; then
# If dependency is not found.
# If dependency is not found.
missingdep = 1
missingdep = 1
if [ " ${ commandname } " = = "INSTALL" ] ; then
if [ " ${ commandname } " = = "INSTALL" ] ; then
echo -e " ${ red } ${ deptocheck } ${ default } "
echo -e " ${ red } ${ deptocheck } ${ default } "
fn_sleep_time_1
fn_sleep_time
fi
fi
# If SteamCMD requirements are not met install will fail.
# If SteamCMD requirements are not met install will fail.
if [ -n " ${ appid } " ] ; then
if [ -n " ${ appid } " ] ; then