Determine user via `id -u -n`

This commit is contained in:
Tim Byrne 2015-12-17 07:52:58 -06:00
parent 8c9deada09
commit df7ccbd602
1 changed files with 1 additions and 1 deletions

2
yadm
View File

@ -107,7 +107,7 @@ function alt() {
#; regex for matching "<file>##SYSTEM.HOSTNAME.USER"
match_system=$(uname -s)
match_host=$(hostname -s)
match_user=${USER}
match_user=$(id -u -n)
match="^(.+)##($match_system|$match_system.$match_host|$match_system.$match_host.$match_user|())$"
#; process relative to YADM_WORK