Skip to content

Commit

Permalink
Prevent writing auth command to influx_history
Browse files Browse the repository at this point in the history
  • Loading branch information
desa committed Oct 6, 2016
1 parent fc57c0f commit 1030306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/influx/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (c *CommandLine) mainLoop() error {
c.exit()
return e
}
if err := c.ParseCommand(l); err != ErrBlankCommand {
if err := c.ParseCommand(l); err != ErrBlankCommand && !strings.HasPrefix(l, "auth") {
c.Line.AppendHistory(l)
c.saveHistory()
}
Expand Down

0 comments on commit 1030306

Please sign in to comment.