mirror of https://github.com/Hilbis/Hilbish
fix: use golang path list separator to not be unix specific
parent
123f8992b1
commit
72cf776882
2
lua.go
2
lua.go
|
@ -140,7 +140,7 @@ func hshappendPath(L *lua.LState) int {
|
||||||
|
|
||||||
// if dir isnt already in $PATH, add it
|
// if dir isnt already in $PATH, add it
|
||||||
if !strings.Contains(pathenv, dir) {
|
if !strings.Contains(pathenv, dir) {
|
||||||
os.Setenv("PATH", pathenv + ":" + dir)
|
os.Setenv("PATH", pathenv + string(os.PathListSeparator) + dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue