1
0
mirror of https://github.com/containrrr/watchtower.git synced 2025-01-17 18:26:19 +02:00

Merge pull request #477 from mbrandau/no-startup-message

fix #472: no-startup-message ignored with run-once
This commit is contained in:
Simon Aronsson 2020-03-27 00:08:34 +01:00 committed by GitHub
commit 04215bf1a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,9 @@ func Run(c *cobra.Command, names []string) {
runOnce, _ := c.PersistentFlags().GetBool("run-once")
if runOnce {
log.Info("Running a one time update.")
if noStartupMessage, _ := c.PersistentFlags().GetBool("no-startup-message"); !noStartupMessage {
log.Info("Running a one time update.")
}
runUpdatesWithNotifications(filter)
os.Exit(0)
return