mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9339 from DorsetDigital/Patch-9338-sake-which
Add check for existence of 'which' command before proceeding with the…
This commit is contained in:
commit
a0d00f8951
5
sake
5
sake
@ -9,6 +9,11 @@ Executes a SilverStripe command"
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# find the silverstripe installation, looking first at sake
|
||||||
# bin location, but falling back to current directory
|
# bin location, but falling back to current directory
|
||||||
sakedir=`dirname $0`
|
sakedir=`dirname $0`
|
||||||
|
Loading…
Reference in New Issue
Block a user