1
0
Fork 0
mirror of synced 2024-07-16 05:46:43 -04:00

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

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