fix: switch exit code for run once to 0

this resolves #347
This commit is contained in:
Simon Aronsson 2019-08-25 13:02:08 +02:00
parent 6ce142b4f5
commit 17cbf86d48

View file

@ -112,7 +112,7 @@ func Run(c *cobra.Command, names []string) {
if runOnce {
log.Info("Running a one time update.")
runUpdatesWithNotifications(filter)
os.Exit(1)
os.Exit(0)
return
}