use posix compatible `command -v` instead of `type -P`

This commit is contained in:
Dave Eddy 2021-12-04 12:30:21 -05:00
parent 555988063b
commit 7867fc3d07
1 changed files with 2 additions and 2 deletions

View File

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