parent
266a583adb
commit
5e67147204
6
os.go
6
os.go
@ -56,6 +56,12 @@ func init() {
|
|||||||
u, err := user.Current()
|
u, err := user.Current()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("user: %s", err)
|
log.Printf("user: %s", err)
|
||||||
|
if os.Getenv("HOME") == "" {
|
||||||
|
log.Print("$HOME variable is empty or not set")
|
||||||
|
}
|
||||||
|
if os.Getenv("USER") == "" {
|
||||||
|
log.Print("$USER variable is empty or not set")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
gUser = u
|
gUser = u
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user