build_library/catalyst.sh: Do not use "which"

There's a bash built-in named command that could be used instead.
This commit is contained in:
Krzesimir Nowak 2023-02-14 13:08:17 +01:00
parent 0e0dbb924c
commit 1d132574ac

View File

@ -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