mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
fix #472
This commit is contained in:
parent
7a402fdee7
commit
205b1766b4
1 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,9 @@ func Run(c *cobra.Command, names []string) {
|
||||||
runOnce, _ := c.PersistentFlags().GetBool("run-once")
|
runOnce, _ := c.PersistentFlags().GetBool("run-once")
|
||||||
|
|
||||||
if runOnce {
|
if runOnce {
|
||||||
|
if noStartupMessage, _ := c.PersistentFlags().GetBool("no-startup-message"); !noStartupMessage {
|
||||||
log.Info("Running a one time update.")
|
log.Info("Running a one time update.")
|
||||||
|
}
|
||||||
runUpdatesWithNotifications(filter)
|
runUpdatesWithNotifications(filter)
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue