Skip to content

Commit

Permalink
Merge pull request #2 from mateusz-kolecki/fix-pre-snapshot-cancel-mu…
Browse files Browse the repository at this point in the history
…lti-targets

Fix zfsonlinux#81 - further snapshots were aborted after the pre-snapshot comma…
  • Loading branch information
GrayXu authored Mar 20, 2023
2 parents cdaa3e8 + 7f407d8 commit b42f216
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 @@ -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
Expand Down

0 comments on commit b42f216

Please sign in to comment.