From b61b7ee0c8f686a4e3e07bc016fa8468a095e21b Mon Sep 17 00:00:00 2001 From: minimalic Date: Sat, 4 May 2024 12:55:20 +0200 Subject: [PATCH] FIX Ensure 'which' command detection across Linux distributions --- sake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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