diff options
Diffstat (limited to 'doCommon.go')
| -rw-r--r-- | doCommon.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doCommon.go b/doCommon.go index 81578bf..85beb01 100644 --- a/doCommon.go +++ b/doCommon.go @@ -35,15 +35,22 @@ func doGitPull() { } func doFix() { + var fixed bool = false all := me.found.SortByGoPath() for all.Scan() { repo := all.Next() if !repo.IsValid() { - log.Printf("%10s %-50s", "old?\n", repo.GetGoPath()) + log.Printf("%10s %-50s", "old?\n", repo.GoPath) + me.forge.Repos.DeleteByGoPath(repo.GoPath) + fixed = true continue } log.Printf("running on: %-50s\n", repo.GetGoPath()) cmd := []string{"ls"} repo.Run(cmd) } + if fixed { + me.forge.Repos.ConfigSave() + okExit("config saved") + } } |
