Fix program existence check

This commit is contained in:
oddlama 2021-05-29 22:26:39 +02:00
parent f03f4a99ab
commit 1b7fc257e2
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 1 additions and 2 deletions

View File

@ -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