Unify the way alternate file strings are matched
This commit is contained in:
parent
c8a9165293
commit
0438e383e5
1 changed files with 1 additions and 1 deletions
2
yadm
2
yadm
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue