Skip to content

Commit ee4bb80

Browse files
mateusz-koleckiGuiorgy
authored andcommitted
Fix zfsonlinux#81 - further snapshots were aborted after the pre-snapshot command failed once
1 parent 69af399 commit ee4bb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zfs-auto-snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...]
197197
then
198198
if [ "$opt_pre_snapshot" != "" ]
199199
then
200-
do_run "$opt_pre_snapshot $ii $NAME" || RUNSNAP=0
200+
do_run "$opt_pre_snapshot $ii $NAME" && RUNSNAP=1 || RUNSNAP=0
201201
fi
202202
if [ $RUNSNAP -eq 1 ] && do_run "zfs snapshot $PROPS $FLAGS '$ii@$NAME'"
203203
then

0 commit comments

Comments
 (0)