From a3c917d3b77115a5f723c87856d4a67ec9e3c06a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 31 Jan 2016 22:48:13 +0000 Subject: [PATCH] added if --- functions/check_deps.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/functions/check_deps.sh b/functions/check_deps.sh index 2224ea2f4..cf685d3a1 100644 --- a/functions/check_deps.sh +++ b/functions/check_deps.sh @@ -18,13 +18,17 @@ elif [ -n "$(command -v yum)" ]; then fi if [ "${depstatus}" == "0" ]; then missingdep=0 - echo -e "\e[0;32m${deptocheck}\e[0m" - sleep 0.5 + if [ "${function_selfname}" == "command_install.sh" ]; then + echo -e "\e[0;32m${deptocheck}\e[0m" + sleep 0.5 + fi else # if missing dependency is found missingdep=1 - echo -e "\e[0;31m${deptocheck}\e[0m" - sleep 0.5 + if [ "${function_selfname}" == "command_install.sh" ]; then + echo -e "\e[0;31m${deptocheck}\e[0m" + sleep 0.5 + fi fi # Missing dependencies are added to array_deps_missing