From fdb6727149a4e43a45a981eb2733f00418917416 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sun, 20 May 2018 22:03:43 +0300 Subject: [PATCH] Update commands_notfound variable check --- runme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runme.sh b/runme.sh index 47135ec..1a8a95a 100755 --- a/runme.sh +++ b/runme.sh @@ -82,7 +82,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