Skip to content

Commit

Permalink
Fix zfsonlinux#81 - further snapshots were aborted after the pre-snap…
Browse files Browse the repository at this point in the history
…shot command failed once
  • Loading branch information
mateusz-kolecki authored and Guiorgy committed Aug 23, 2024
1 parent f063522 commit e3c3700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zfs-auto-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,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
Expand Down

0 comments on commit e3c3700

Please sign in to comment.