Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Use command -v to find zfs binary #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion check_mountpoints.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down