FIX Ensure 'which' command detection across Linux distributions
This commit is contained in:
parent
142a318fa8
commit
b61b7ee0c8
2
sake
2
sake
|
@ -9,7 +9,7 @@ Executes a SilverStripe command"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [ -x "$(command -v which)" ]; then
|
if ! [ -x "$(type -P which)" ]; then
|
||||||
echo "Error: sake requires the 'which' command to operate." >&2
|
echo "Error: sake requires the 'which' command to operate." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue