Browse Source

added if

pull/667/head
Daniel Gibbs 9 years ago
parent
commit
a3c917d3b7
  1. 4
      functions/check_deps.sh

4
functions/check_deps.sh

@ -18,14 +18,18 @@ elif [ -n "$(command -v yum)" ]; then
fi fi
if [ "${depstatus}" == "0" ]; then if [ "${depstatus}" == "0" ]; then
missingdep=0 missingdep=0
if [ "${function_selfname}" == "command_install.sh" ]; then
echo -e "\e[0;32m${deptocheck}\e[0m" echo -e "\e[0;32m${deptocheck}\e[0m"
sleep 0.5 sleep 0.5
fi
else else
# if missing dependency is found # if missing dependency is found
missingdep=1 missingdep=1
if [ "${function_selfname}" == "command_install.sh" ]; then
echo -e "\e[0;31m${deptocheck}\e[0m" echo -e "\e[0;31m${deptocheck}\e[0m"
sleep 0.5 sleep 0.5
fi fi
fi
# Missing dependencies are added to array_deps_missing # Missing dependencies are added to array_deps_missing
if [ "${missingdep}" == "1" ]; then if [ "${missingdep}" == "1" ]; then

Loading…
Cancel
Save