From 0438e383e5e6dce5d409cbb554a15fc0b9ab0d8f Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Mon, 30 Sep 2019 08:43:35 -0500 Subject: [PATCH] Unify the way alternate file strings are matched --- yadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yadm b/yadm index fda4453..ea4ee63 100755 --- a/yadm +++ b/yadm @@ -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