Invoke repoAdd on repo add command

This commit is contained in:
mirrorZ 2016-06-08 15:38:07 +09:00
parent 9ab3ccccff
commit 4384121586

View file

@ -11,7 +11,7 @@ var repoAddCmd = cli.Command{
Name: "add",
Usage: "add a repository",
Action: func(c *cli.Context) {
if err := repoRemove(c); err != nil {
if err := repoAdd(c); err != nil {
log.Fatalln(err)
}
},