We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4342dbe commit 7f05c79Copy full SHA for 7f05c79
cmd/zrok/enable.go
@@ -62,8 +62,9 @@ func (cmd *enableCommand) run(_ *cobra.Command, args []string) {
62
} else {
63
username = os.Getenv("USER")
64
if username == "" {
65
- username = fmt.Sprintf("user-%d", os.Geteuid())
66
- logrus.Warnf("unable to determine the current user, using effective UID: %v", err)
+ euid := os.Geteuid()
+ username = fmt.Sprintf("user-%d", euid)
67
+ logrus.Warnf("unable to determine the current user, using effective UID: %v", euid)
68
}
69
70
hostDetail = fmt.Sprintf("%v; %v", username, hostDetail)
0 commit comments