From 1d132574ac727639a9092b9b0fce95470a06e206 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 14 Feb 2023 13:08:17 +0100 Subject: [PATCH] build_library/catalyst.sh: Do not use "which" There's a bash built-in named command that could be used instead. --- build_library/catalyst.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_library/catalyst.sh b/build_library/catalyst.sh index 26b5372863..cc470fd9aa 100644 --- a/build_library/catalyst.sh +++ b/build_library/catalyst.sh @@ -174,7 +174,7 @@ catalyst_init() { die_notrace "This script must be run as root." fi - if ! which catalyst &>/dev/null; then + if ! command -v catalyst >/dev/null 2>&1; then die_notrace "catalyst not found, not installed or bad PATH?" fi