summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 09:15:17 -0500
committerJeff Carr <[email protected]>2025-10-14 10:48:54 -0500
commitf4858dd58ee07309692909c350e0675cc6226d7e (patch)
treeb250a2fe748e2c802691fd8eab8d38a15087b6a7 /main.go
parent094f1b14e396d09d352f54e9cad50a88fa3e5d43 (diff)
more housecleaning
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index c977ed0..6a0aa8f 100644
--- a/main.go
+++ b/main.go
@@ -41,7 +41,9 @@ func main() {
}
}
- if me.pb.BaseDir == "" {
+ // 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")
me.pb.Save()
me.sh.BadExit("pb.BaseDir is bank", nil)