From 470293a6d215c446d66806990def0631fd99f923 Mon Sep 17 00:00:00 2001 From: Hernold Koch Date: Mon, 20 May 2024 01:04:44 +0200 Subject: [PATCH] FIX 'which' check in 'sake' now works for aliases (#11232) --- sake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sake b/sake index 3e1274d8c..65d9af339 100755 --- a/sake +++ b/sake @@ -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