Skip to content

Commit f145cf6

Browse files
author
Jonathan Carter
committed
Revert PR85
1 parent 838b03b commit f145cf6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/zfs-auto-snapshot.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -440,16 +440,12 @@ do
440440
# Just testing "$ii" != ${ii#$jj} would incorrectly match.
441441
iii="$ii/"
442442

443-
# Exclude datasets
444-
# * that are not named on the command line or
445-
# * those whose prefix is not on the command line (if --recursive flag is set)
443+
444+
# Exclude datasets that are not named on the command line.
446445
IN_ARGS='0'
447446
for jj in "$@"
448447
do
449448
if [ "$jj" = '//' -o "$jj" = "$ii" ]
450-
then
451-
IN_ARGS=$(( $IN_ARGS + 1 ))
452-
elif [ -n "$opt_recursive" -a "$iii" != "${iii#$jj}" ]
453449
then
454450
IN_ARGS=$(( $IN_ARGS + 1 ))
455451
fi

0 commit comments

Comments
 (0)