summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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)