From 02bf83c5efa227a6a57108f9a77b3d357442580c Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Mon, 16 Jan 2017 17:51:03 -0600 Subject: [PATCH] Restrict alt-link delimiter to a period (#49) --- yadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yadm b/yadm index 2eb9acc..2f5c4c1 100755 --- a/yadm +++ b/yadm @@ -113,7 +113,7 @@ function alt() { match_host=$(hostname) match_host=${match_host%%.*} #; trim any domain from hostname match_user=$(id -u -n) - match="^(.+)##($match_system|$match_system.$match_host|$match_system.$match_host.$match_user|())$" + match="^(.+)##($match_system|$match_system\.$match_host|$match_system\.$match_host\.$match_user|())$" #; process relative to YADM_WORK YADM_WORK=$(unix_path "$("$GIT_PROGRAM" config core.worktree)")