Reload indexes when restarting

This commit is contained in:
Daniel
2020-05-25 17:20:02 +02:00
parent eef8a443e4
commit 046a00f473
2 changed files with 18 additions and 11 deletions

View File

@@ -191,6 +191,9 @@ func run(cmd *cobra.Command, opts *Options) (err error) {
case tryAgain && err == nil:
// upgrade
log.Println("restarting by request...")
// update index
log.Println("checking versions...")
updateRegistryIndex()
case !tryAgain && err != nil:
// fatal error
return err