Skip to content

Commit

Permalink
FIX 'which' check in 'sake' now works for aliases (#11232)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoLdman authored May 19, 2024
1 parent 50a0018 commit 470293a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 470293a

Please sign in to comment.