diff --git a/functions/check_deps.sh b/functions/check_deps.sh index 0e21baef8..94899b20b 100644 --- a/functions/check_deps.sh +++ b/functions/check_deps.sh @@ -16,12 +16,11 @@ elif [ -n "$(command -v yum)" ]; then yum -q list installed ${deptocheck} 2>/dev/null depstatus=$? fi - if [ "${depstatus}" == "0" ]; then - missingdep=0 - else - # if missing dependency is flagged - missingdep=1 - fi +if [ "${depstatus}" == "0" ]; then + missingdep=0 +else + # if missing dependency is flagged + missingdep=1 fi # Add missing dependencies are added to array_deps_missing array