use posix compatible `command -v` instead of `type -P`
This commit is contained in:
parent
555988063b
commit
7867fc3d07
|
@ -165,8 +165,8 @@ human-size() {
|
|||
echo '0 B'
|
||||
}
|
||||
|
||||
if ! type -P zfs &>/dev/null; then
|
||||
echo "Error! zfs command not found. Are you on the right machine?"
|
||||
if ! command -v zfs &>/dev/null; then
|
||||
echo "Error! zfs command not found. Are you on the right machine?" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue