From 05d09b7584b4cd18676c68dd161142044437a7af Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 28 Oct 2025 04:35:07 -0500 Subject: load custom env files --- addpath.go | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 addpath.go (limited to 'addpath.go') diff --git a/addpath.go b/addpath.go deleted file mode 100644 index 22f6c1e..0000000 --- a/addpath.go +++ /dev/null @@ -1,27 +0,0 @@ -package env - -import ( - "os" - "strings" - - "go.wit.com/log" -) - -// this is an experiment at this point to -// see how this turns out - -// adds a path to the ENV -func AddPath(newpath string) bool { - path := os.Getenv("PATH") - for _, p := range strings.Split(path, ":") { - log.Info("Looking at path:", p) - if p == newpath { - log.Info("FOUND path:", p) - return false - } - } - path = path + ":" + newpath - log.Info("ADDING PATH:", path) - os.Setenv("PATH", path) - return true -} -- cgit v1.2.3