summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-24 18:31:21 -0500
committerJeff Carr <[email protected]>2025-10-24 18:31:21 -0500
commitd4ac45d164ab08b212382220e31f12c810e77265 (patch)
tree4b00671606313f008025304a1672fa174b84c7fe /main.go
parent15c0f73cefffe7b1d2afed3f38406756b9977761 (diff)
s/ENV/env/ but ENV really is better herev0.0.31
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.go b/main.go
index 5e00420..be9fe4d 100644
--- a/main.go
+++ b/main.go
@@ -6,7 +6,7 @@ import (
"os"
"path/filepath"
- "go.wit.com/lib/ENV"
+ "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 = ENV.GetPanic("mirrors.pb")
+ me.pb.Filename = env.GetPanic("mirrors.pb")
if err := me.pb.Load(); err != nil {
- me.pb.BaseDir = ENV.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 != ENV.GetPanic("BaseDir") {
- me.pb.BaseDir = ENV.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)
}