We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3689b2c + 6e32b25 commit b0a5909Copy full SHA for b0a5909
src/zfs-auto-snapshot.sh
@@ -569,10 +569,10 @@ SNAPPROP="-o com.sun:auto-snapshot-desc='$opt_event'"
569
DATE=$(date --utc +%F-%H%M)
570
571
# The snapshot name after the @ symbol.
572
-SNAPNAME="$opt_prefix${opt_label:+$opt_sep$opt_label}-$DATE"
+SNAPNAME="${opt_prefix:+$opt_prefix$opt_sep}${opt_label:+$opt_label}-$DATE"
573
574
# The expression for matching old snapshots. -YYYY-MM-DD-HHMM
575
-SNAPGLOB="$opt_prefix${opt_label:+?$opt_label}????????????????"
+SNAPGLOB="${opt_prefix:+$opt_prefix$opt_sep}${opt_label:+$opt_label}-???????????????"
576
577
if [ -n "$opt_do_snapshots" ]
578
then
0 commit comments