Skip to content

Commit

Permalink
[FIX] snapshot fixes the prefix hyphenation, Closes #113
Browse files Browse the repository at this point in the history
  • Loading branch information
ppreeper committed Oct 27, 2023
1 parent 010c2ee commit be8658c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions share/zfsnap/commands/snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ while [ "$1" ]; do

CURRENT_DATE=${CURRENT_DATE:-`date "+$TIME_FORMAT"`}

[ -z ${PREFIX} ] || PREFIX=${PREFIX%%[-]}-

ZFS_SNAPSHOT="$ZFS_CMD snapshot $ZOPT ${1}@${PREFIX}${CURRENT_DATE}--${TTL}"
if IsFalse "$DRY_RUN"; then
if $ZFS_SNAPSHOT >&2; then
Expand Down

0 comments on commit be8658c

Please sign in to comment.