Merge pull request #8 from lehoczkics/check_zfs_binary

Add zfs binary check
This commit is contained in:
Dave Eddy 2020-02-20 17:22:54 -05:00 committed by GitHub
commit 2ccb235ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,11 @@ human() {
echo '0 seconds'
}
if ! type -P zfs &>/dev/null; then
echo "Error! zfs command not found. Are you on the right machine?"
exit 1
fi
dryrun=false
verbosity=0
prefix=