diff --git a/sake b/sake index 3e1274d8c..fe4675888 100755 --- a/sake +++ b/sake @@ -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