summaryrefslogtreecommitdiff
path: root/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'path.go')
-rw-r--r--path.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/path.go b/path.go
index 66a27fe..b9fffdb 100644
--- a/path.go
+++ b/path.go
@@ -1,25 +1,24 @@
package env
import (
+ "fmt"
"os"
"path/filepath"
"strings"
-
- "go.wit.com/log"
)
// 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)
+ fmt.Println("Looking at path:", p)
if p == newpath {
- log.Info("FOUND path:", p)
+ fmt.Println("FOUND path:", p)
return false
}
}
path = path + ":" + newpath
- log.Info("ADDING PATH:", path)
+ fmt.Println("ADDING PATH:", path)
os.Setenv("PATH", path)
return true
}