Fix program existence check
This commit is contained in:
parent
f03f4a99ab
commit
1b7fc257e2
|
@ -322,11 +322,10 @@ function parse_arguments() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_has_programs() {
|
function check_has_programs() {
|
||||||
echo "$@"
|
|
||||||
local failed=()
|
local failed=()
|
||||||
local program
|
local program
|
||||||
for program in "$@"; do
|
for program in "$@"; do
|
||||||
type "$1" &>/dev/null \
|
type "$program" &>/dev/null \
|
||||||
|| failed+=("$program")
|
|| failed+=("$program")
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue