mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-05 05:03:23 +00:00
fix: use golang path list separator to not be unix specific
This commit is contained in:
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 !strings.Contains(pathenv, dir) {
|
||||
os.Setenv("PATH", pathenv + ":" + dir)
|
||||
os.Setenv("PATH", pathenv + string(os.PathListSeparator) + dir)
|
||||
}
|
||||
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user