Fix program existence check
This commit is contained in:
parent
f03f4a99ab
commit
1b7fc257e2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue