Merge pull request #2483 from jprukner/fix-alias-which-check

Fix which command check
This commit is contained in:
Jeroen van Rijn
2023-04-25 08:32:45 +02:00
committed by GitHub

View File

@@ -157,7 +157,7 @@ run_demo() {
}
have_which() {
if ! [ -x "$(command -v which)" ]; then
if ! command -v which > /dev/null 2>&1 ; then
panic "Could not find \`which\`"
fi
}