1
0
mirror of https://github.com/containrrr/watchtower.git synced 2025-10-31 00:17:44 +02:00

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
}