Mirror fix
This commit is contained in:
parent
be69e74bc0
commit
7aa0a97d10
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ func NewConfigContext() {
|
||||||
RunUser = Cfg.MustValue("", "RUN_USER")
|
RunUser = Cfg.MustValue("", "RUN_USER")
|
||||||
curUser := os.Getenv("USERNAME")
|
curUser := os.Getenv("USERNAME")
|
||||||
if len(curUser) == 0 {
|
if len(curUser) == 0 {
|
||||||
curUser = os.Getenv("whoami")
|
curUser = os.Getenv("USER")
|
||||||
}
|
}
|
||||||
if RunUser != curUser {
|
if RunUser != curUser {
|
||||||
fmt.Printf("Expect user(%s) but current user is: %s\n", RunUser, curUser)
|
fmt.Printf("Expect user(%s) but current user is: %s\n", RunUser, curUser)
|
||||||
|
|
Loading…
Reference in a new issue