From f145cf6e07c55f9544d562c5c7c4c8ba70a54a8e Mon Sep 17 00:00:00 2001 From: Jonathan Carter Date: Sat, 21 Apr 2018 09:27:26 +0200 Subject: [PATCH] Revert PR85 --- src/zfs-auto-snapshot.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/zfs-auto-snapshot.sh b/src/zfs-auto-snapshot.sh index 8b91423..2038b5f 100644 --- a/src/zfs-auto-snapshot.sh +++ b/src/zfs-auto-snapshot.sh @@ -440,16 +440,12 @@ do # Just testing "$ii" != ${ii#$jj} would incorrectly match. iii="$ii/" - # Exclude datasets - # * that are not named on the command line or - # * those whose prefix is not on the command line (if --recursive flag is set) + + # Exclude datasets that are not named on the command line. IN_ARGS='0' for jj in "$@" do if [ "$jj" = '//' -o "$jj" = "$ii" ] - then - IN_ARGS=$(( $IN_ARGS + 1 )) - elif [ -n "$opt_recursive" -a "$iii" != "${iii#$jj}" ] then IN_ARGS=$(( $IN_ARGS + 1 )) fi