use type instead of which to test for required tools
This commit is contained in:
parent
3956e95814
commit
3a491e398d
@ -433,13 +433,13 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$(which jq)" ; then
|
if test -z "$(type -p jq)" ; then
|
||||||
echo "ERROR: Required executable \"jq\" not found." >&2
|
echo "ERROR: Required executable \"jq\" not found." >&2
|
||||||
rv=1
|
rv=1
|
||||||
elif test -z "$(which pactl)" ; then
|
elif test -z "$(type -p pactl)" ; then
|
||||||
echo "ERROR: Required executable \"pactl\" not found." >&2
|
echo "ERROR: Required executable \"pactl\" not found." >&2
|
||||||
rv=1
|
rv=1
|
||||||
elif test -z "$(which ssh)" ; then
|
elif test -z "$(type -p ssh)" ; then
|
||||||
echo "ERROR: Required executable \"ssh\" not found." >&2
|
echo "ERROR: Required executable \"ssh\" not found." >&2
|
||||||
rv=1
|
rv=1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user