summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-27 01:36:18 -0500
committerJeff Carr <[email protected]>2025-10-27 01:36:18 -0500
commit5737a6e3f362716b62cfff6607c5b81daf1ef87e (patch)
tree01e8195d0ddfe92933a5c7f58e2cd4a760a8cc75
parentdbe78b785508d8ef665d8b9c4d61e4dd8eb40e51 (diff)
minorv0.0.9
-rw-r--r--init.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.go b/init.go
index 8868309..ab1ccbf 100644
--- a/init.go
+++ b/init.go
@@ -49,11 +49,12 @@ func loadAppENV() error {
}
{
- // old way. deprecate in 2026
+ // old way. remove the file after read
envPB.Filename = filepath.Join(configDir, APPNAME, APPNAME+".ENV")
data, err := os.ReadFile(envPB.Filename)
if err == nil {
parseENV(string(data))
+ os.Remove(envPB.Filename)
}
}
envPB.Filename = filepath.Join(configDir, APPNAME, APPNAME+"rc")