1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00: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

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