diff --git a/src/zfs-auto-snapshot.sh b/src/zfs-auto-snapshot.sh index cd88f0f..864cc2b 100644 --- a/src/zfs-auto-snapshot.sh +++ b/src/zfs-auto-snapshot.sh @@ -182,7 +182,7 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...] then if [ "$opt_pre_snapshot" != "" ] then - do_run "$opt_pre_snapshot $ii $NAME" || RUNSNAP=0 + do_run "$opt_pre_snapshot $ii $NAME" && RUNSNAP=1 || RUNSNAP=0 fi if [ $RUNSNAP -eq 1 ] && do_run "zfs snapshot $PROPS $FLAGS '$ii@$NAME'" then