Skip to content

Commit a0a43a4

Browse files
committed
Invert the --skip-scrub test.
The $opt_skip_scrub option was tested incorrectly, which caused the --skip-scrub option to operate opposite intent.
1 parent d8b1730 commit a0a43a4

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
@@ -346,7 +346,7 @@ do
346346
done
347347

348348
# Exclude objects in scrubbing pools if the --skip-scrub flag is set.
349-
test -z "$opt_skip_scrub" && for jj in $ZPOOLS_SCRUBBING
349+
test -n "$opt_skip_scrub" && for jj in $ZPOOLS_SCRUBBING
350350
do
351351
# Ibid regarding iii.
352352
jjj="$jj/"

0 commit comments

Comments
 (0)