FIX 'which' check in 'sake' now works for aliases (#11232)

This commit is contained in:
Hernold Koch 2024-05-20 01:04:44 +02:00 committed by GitHub
parent 50a0018363
commit 470293a6d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

3
sake
View File

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