save config if Username not set
This commit is contained in:
parent
060c304a43
commit
6bfd8c78ab
1
init.go
1
init.go
|
@ -44,6 +44,7 @@ func Init() *Forge {
|
||||||
if f.Config.Username == "" {
|
if f.Config.Username == "" {
|
||||||
usr, _ := user.Current()
|
usr, _ := user.Current()
|
||||||
f.Config.Username = usr.Username
|
f.Config.Username = usr.Username
|
||||||
|
f.Config.ConfigSave()
|
||||||
}
|
}
|
||||||
f.initFromConfig()
|
f.initFromConfig()
|
||||||
if f.Config.Mode == ForgeMode_MASTER {
|
if f.Config.Mode == ForgeMode_MASTER {
|
||||||
|
|
Loading…
Reference in New Issue