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
1 changed files with 1 additions and 1 deletions

2
yadm
View File

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