1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

Add a default alternate suffix of ##

Now yadm chooses these three suffixes in order:
 - `##SYSTEM.HOSTNAME`
 - `##SYSTEM`
 - `##`
This commit is contained in:
Tim Byrne
2015-07-19 12:06:51 -05:00
parent 614b2cd8b8
commit 2024bd0bf1
3 changed files with 24 additions and 15 deletions

2
yadm
View File

@@ -107,7 +107,7 @@ function alt() {
#; regex for matching "<file>##SYSTEM.HOSTNAME"
match_system=$(uname -s)
match_host=$(hostname -s)
match="^(.+)##($match_system|$match_system.$match_host)$"
match="^(.+)##($match_system|$match_system.$match_host|())$"
#; process relative to YADM_WORK
YADM_WORK=$(git config core.worktree)