mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX 'which' check in 'sake' now works for aliases (#11232)
This commit is contained in:
parent
50a0018363
commit
470293a6d2
3
sake
3
sake
@ -9,7 +9,8 @@ Executes a SilverStripe command"
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
echo "Error: sake requires the 'which' command to operate." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user