Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #144 from segmentio/fix-username-clobber
Browse files Browse the repository at this point in the history
Avoid clobbering the  --username flag when running add subcommand
  • Loading branch information
John Boggs authored Apr 18, 2019
2 parents b1140c3 + 2a56b02 commit e21c49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ func prerun(cmd *cobra.Command, args []string) {
BatchSize: 1,
})

username = os.Getenv("USER")
usr := os.Getenv("USER")
analyticsClient.Enqueue(analytics.Identify{
UserId: username,
UserId: usr,
Traits: analytics.NewTraits().
Set("aws-okta-version", version),
})
Expand Down

0 comments on commit e21c49b

Please sign in to comment.