1
0
Fork 0
mirror of synced 2025-01-15 00:56:15 -05:00

Unify the way alternate file strings are matched

This commit is contained in:
Tim Byrne 2019-09-30 08:43:35 -05:00
parent c8a9165293
commit 0438e383e5
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

2
yadm
View file

@ -390,7 +390,7 @@ function alt() {
local IFS=$'\n' local IFS=$'\n'
for possible_alt in "${tracked_files[@]}" "${ENCRYPT_INCLUDE_FILES[@]}"; do for possible_alt in "${tracked_files[@]}" "${ENCRYPT_INCLUDE_FILES[@]}"; do
if [[ $possible_alt =~ .\#\#. ]]; then if [[ $possible_alt =~ .\#\#. ]]; then
possible_alts+=("$YADM_WORK/${possible_alt%##*}") possible_alts+=("$YADM_WORK/${possible_alt%%##*}")
fi fi
done done
local alt_linked local alt_linked