mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-21 05:31:05 +02:00
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:
parent
0e0dbb924c
commit
1d132574ac
@ -174,7 +174,7 @@ catalyst_init() {
|
|||||||
die_notrace "This script must be run as root."
|
die_notrace "This script must be run as root."
|
||||||
fi
|
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?"
|
die_notrace "catalyst not found, not installed or bad PATH?"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user