Add zfs binary check

This commit is contained in:
Csaba Lehoczki 2020-02-13 17:20:17 +01:00
parent d10b865f23
commit 64b4a9b379
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=