mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
Determine user via id -u -n
This commit is contained in:
parent
8c9deada09
commit
df7ccbd602
2
yadm
2
yadm
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user