2020#
2121
2222# Set the field separator to a literal tab and newline.
23- IFS="
23+ IFS="
2424"
2525
2626# Set default program options.
@@ -74,7 +74,7 @@ print_usage ()
7474 -v, --verbose Print info messages.
7575 --destroy-only Only destroy older snapshots, do not create new ones.
7676 name Filesystem and volume names, or '//' for all ZFS datasets.
77- "
77+ "
7878}
7979
8080
@@ -174,7 +174,7 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...]
174174 else
175175 WARNING_COUNT=$(( $WARNING_COUNT + 1 ))
176176 continue
177- fi
177+ fi
178178 fi
179179
180180 # Retain at most $opt_keep number of old snapshots of this filesystem,
@@ -191,7 +191,7 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...]
191191 KEEP=$(( $KEEP - 1 ))
192192 if [ " $KEEP " -le ' 0' ]
193193 then
194- if do_run " zfs destroy -d $FLAGS '$jj '"
194+ if do_run " zfs destroy -d $FLAGS '$jj '"
195195 then
196196 DESTRUCTION_COUNT=$(( $DESTRUCTION_COUNT + 1 ))
197197 else
297297 shift 1
298298 ;;
299299 (--sep)
300- case " $2 " in
300+ case " $2 " in
301301 ([[:alnum:]_.:\ -])
302302 :
303303 ;;
@@ -345,7 +345,7 @@ if [ "$#" -eq '0' ]
345345then
346346 print_log error " The filesystem argument list is empty."
347347 exit 133
348- fi
348+ fi
349349
350350# Count the number of times '//' appears on the command line.
351351SLASHIES=' 0'
402402ZPOOLS_SCRUBBING=$( echo " $ZPOOL_STATUS " | awk -F ' : ' \
403403 ' $1 ~ /^ *pool$/ { pool = $2 } ; \
404404 $1 ~ /^ *scan$/ && $2 ~ /scrub in progress/ { print pool }' \
405- | sort )
405+ | sort )
406406
407407# Get a list of pools that cannot do a snapshot.
408408ZPOOLS_NOTREADY=$( echo " $ZPOOL_STATUS " | awk -F ' : ' \
0 commit comments