diff --git a/sake b/sake index 9c177a08b..3fac1c411 100755 --- a/sake +++ b/sake @@ -9,6 +9,11 @@ Executes a SilverStripe command" exit 1 fi +if ! [ -x "$(command -v which)" ]; then + echo "Error: sake requires the 'which' command to operate." >&2 + exit 1 +fi + # find the silverstripe installation, looking first at sake # bin location, but falling back to current directory sakedir=`dirname $0`