save config if Username not set

This commit is contained in:
Jeff Carr 2025-09-22 21:08:29 -05:00
parent 060c304a43
commit e073d0931e
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ func Init() *Forge {
if f.Config.Username == "" {
usr, _ := user.Current()
f.Config.Username = usr.Username
f.Config.ConfigSave()
}
f.initFromConfig()
if f.Config.Mode == ForgeMode_MASTER {