From 687e85510ecaf4b445f73eef24bfae2b633d933d Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sun, 20 May 2018 22:05:20 +0300 Subject: [PATCH] Update commands_notfound variable check --- salt_testrun.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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