From 968d50ce923ba5f9d6bcdbcc8ae1ff1ceb90d155 Mon Sep 17 00:00:00 2001 From: Darik Horn Date: Tue, 22 Nov 2011 22:04:13 -0600 Subject: [PATCH] Invert the --skip-scrub test. The test sense for the --skip-scrub flag is incorrect, which causes it to operate opposite as intented. --- src/zfs-auto-snapshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zfs-auto-snapshot.sh b/src/zfs-auto-snapshot.sh index 5ec98e8..d312e0a 100755 --- a/src/zfs-auto-snapshot.sh +++ b/src/zfs-auto-snapshot.sh @@ -346,7 +346,7 @@ do done # Exclude objects in scrubbing pools if the --skip-scrub flag is set. - test -z "$opt_skip_scrub" && for jj in $ZPOOLS_SCRUBBING + test -n "$opt_skip_scrub" && for jj in $ZPOOLS_SCRUBBING do # Ibid regarding iii. jjj="$jj/"