summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-25 01:18:30 -0500
committerJeff Carr <[email protected]>2025-10-25 01:18:30 -0500
commit8f42cdc094968b125f685d4647217cc330b932b9 (patch)
tree286f14251bc3505afcc2db1e470dc10de09566e1 /main.go
parent7b4f0639d861d104c67817e1f47816fa5e80b07d (diff)
catch some nil panics
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.go b/main.go
index bf59e57..1d59034 100644
--- a/main.go
+++ b/main.go
@@ -20,7 +20,6 @@ import (
var resources embed.FS
func doCoreChecks() {
- // env.PrintTable()
me.forge.RescanRepos() // looks for new dirs, checks existing repos for changes
// if you are in "normal" mode, always run normal every time to catch accidental errors
@@ -51,7 +50,9 @@ func main() {
log.Printf("forge failure on Init err=(%v)\n", err)
me.argv.BadExit("WTF", err)
}
- env.PrintTable()
+ if env.Verbose() {
+ env.PrintTable()
+ }
if me.forge.IsModeUnknown() || me.forge.IsModeNewUser() {
doNewUser()