FIX Ensure 'which' command detection across Linux distributions

This commit is contained in:
minimalic 2024-05-04 12:55:20 +02:00
parent 142a318fa8
commit b61b7ee0c8
1 changed files with 1 additions and 1 deletions

2
sake
View File

@ -9,7 +9,7 @@ Executes a SilverStripe command"
exit 1
fi
if ! [ -x "$(command -v which)" ]; then
if ! [ -x "$(type -P which)" ]; then
echo "Error: sake requires the 'which' command to operate." >&2
exit 1
fi