From 1b7fc257e2a12a7916a2820c4bbf2840bc2c1af4 Mon Sep 17 00:00:00 2001 From: oddlama Date: Sat, 29 May 2021 22:26:39 +0200 Subject: [PATCH] Fix program existence check --- scripts/utils.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/utils.sh b/scripts/utils.sh index 1d29432..ddf2be5 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -322,11 +322,10 @@ function parse_arguments() { } function check_has_programs() { - echo "$@" local failed=() local program for program in "$@"; do - type "$1" &>/dev/null \ + type "$program" &>/dev/null \ || failed+=("$program") done