diff --git a/check_mountpoints.sh b/check_mountpoints.sh index 2ef6c2b..92d31b0 100755 --- a/check_mountpoints.sh +++ b/check_mountpoints.sh @@ -253,7 +253,7 @@ done # ZFS file system have no fstab. Make on -if [ -x '/sbin/zfs' ]; then +if [ -x "$(command -v zfs)" ]; then TMPTAB=$(mktemp) cat ${FSTAB} > ${TMPTAB} for DS in $(zfs list -H -o name); do