command/push: if a token isn't given, don't set it

This commit is contained in:
Mitchell Hashimoto 2014-12-01 16:54:12 -08:00
parent d08815fc49
commit f76116e4a3
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,9 @@ func (c *PushCommand) Run(args []string) int {
return 1
}
}
c.client.Token = token
if token != "" {
c.client.Token = token
}
// Build the archiving options
var opts archive.ArchiveOpts