summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go20
1 files changed, 9 insertions, 11 deletions
diff --git a/main.go b/main.go
index 320013e..74d179d 100644
--- a/main.go
+++ b/main.go
@@ -43,27 +43,25 @@ func doInit() *forgepb.Forge {
}
func doCoreChecks() {
- ENV.PrintTable()
me.forge.RescanRepos() // looks for new dirs, checks existing repos for changes
- if !me.forge.IsModeNormal() {
- ENV.PrintTable()
- }
- if me.forge.IsModeDevel() {
- dumpDebug()
- }
-
// if you are in "normal" mode, always run normal every time to catch accidental errors
// for example, if you accidentally changed branches from your user branch
if me.forge.IsModeNormal() {
// show what is still normal and what is not
if doNormalStatus() {
- log.Info("things are still normal")
+ // log.Info("things are still normal")
} else {
- log.Info("things are not normal anymore")
+ log.Info("doNormalStatus() failed. things are not normal anymore")
+ }
+ } else {
+ if !me.forge.IsModeNormal() {
+ ENV.PrintTable()
+ }
+ if me.forge.IsModeDevel() {
+ dumpDebug()
}
}
-
}
func main() {