summaryrefslogtreecommitdiff
path: root/doNewUser.go
diff options
context:
space:
mode:
Diffstat (limited to 'doNewUser.go')
-rw-r--r--doNewUser.go20
1 files changed, 3 insertions, 17 deletions
diff --git a/doNewUser.go b/doNewUser.go
index b9f9511..b9fe56a 100644
--- a/doNewUser.go
+++ b/doNewUser.go
@@ -9,7 +9,6 @@ import (
"errors"
"go.wit.com/lib/fhelp"
- "go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/log"
)
@@ -18,7 +17,7 @@ func doNewUser() (string, error) {
var s string
var err error
- if me.forge.Config.Mode == forgepb.ForgeMode_UNKNOWN {
+ if me.forge.Mode == forgepb.ForgeMode_UNKNOWN {
dumpDebug()
log.Info("---- ----")
log.Info("---- Welcome to forge!!! ----")
@@ -32,21 +31,8 @@ func doNewUser() (string, error) {
// log.Info("MODE NOT UNKNOWN")
}
- // TODO: verify config values are valid here
- if me.forge.Config.ReposPB == "" {
- log.Info("broken config. load default config here")
- me.forge.Config, err = forgepb.MakeDefaultConfig()
- }
-
- // TODO: make checks that make sense here and then exit from NEWUSER mode
- if shell.Exists(me.forge.Config.ReposPB) {
- log.Info("looks like you might not be a new user")
- log.Info("a repos file already exists at", me.forge.Config.ReposPB)
- // not a new user
- return s, err
- }
-
- if me.forge.Config.Mode != forgepb.ForgeMode_NEWUSER {
+ if me.forge.Mode != forgepb.ForgeMode_NEWUSER {
+ // you aren't a new user anymore
return s, err
}