diff options
| author | Jeff Carr <[email protected]> | 2025-10-22 09:19:04 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-22 09:19:04 -0500 |
| commit | 570417ac12815116e4cdf90bbb656e01a1321a56 (patch) | |
| tree | df90806fd512b33142d1dc2d112290d7c1d1b2f8 /main.go | |
| parent | b28cd1762a2601b6acb082ac54c62aef166a5758 (diff) | |
step1v0.0.29
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -6,7 +6,7 @@ import ( "os" "path/filepath" - "go.wit.com/lib/config" + "go.wit.com/lib/ENV" "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/argvpb" "go.wit.com/lib/protobuf/zoopb" @@ -22,17 +22,17 @@ func main() { // read in protobuf file me.pb = zoopb.NewPackages() - me.pb.Filename = config.GetPanic("mirrors.pb") + me.pb.Filename = ENV.GetPanic("mirrors.pb") if err := me.pb.Load(); err != nil { - me.pb.BaseDir = config.GetPanic("BaseDir") + me.pb.BaseDir = ENV.GetPanic("BaseDir") me.pb.Save() me.argv.GoodExit("created new pb file: " + me.pb.Filename + ". rerun mirrors.") } // force check the PB variable // todo: redo all this now that there is a generalized lib/config/ - if me.pb.BaseDir != config.GetPanic("BaseDir") { - me.pb.BaseDir = config.GetPanic("BaseDir") + if me.pb.BaseDir != ENV.GetPanic("BaseDir") { + me.pb.BaseDir = ENV.GetPanic("BaseDir") me.pb.Save() me.argv.BadExit("pb.BaseDir is bank", nil) } |
