diff --git a/salt_testrun.sh b/salt_testrun.sh index 5ec4f8a..f8eabe0 100644 --- a/salt_testrun.sh +++ b/salt_testrun.sh @@ -39,7 +39,7 @@ function checkCommands() { fi done - if [[ -n $COMMANDS_NOTFOUND ]]; then + if [[ -v COMMANDS_NOTFOUND ]]; then echo -e "\n${bash_red}Error:${bash_color_default} The following commands could not be found: ${COMMANDS_NOTFOUND[*]}\nAborting\n" exit 1 fi