Skip to content

Commit

Permalink
Merge pull request #14 from ams-tschoening/snap_pattern_underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
hunleyd authored Oct 31, 2022
2 parents 35ec16f + c6e7367 commit adcc42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btrfs-auto-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ fi

snap_name="${prefix}_${label}_$(date +%F-%H%M)"
snap_patt='[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}-[[:digit:]]{4}'
snap_patt="${prefix}_${label}_${snap_patt}"
snap_patt="${prefix}_${label}[_-]${snap_patt}"

btrfs_mounts="$(btrfs_mounts_calc)"
btrfs_subvols_txt="$(echo "${btrfs_mounts}" | btrfs_subvols_calc)"
Expand Down

0 comments on commit adcc42e

Please sign in to comment.