2
2
spegling av https://github.com/Hilbis/Hilbish synced 2025-06-30 16:22:03 +00:00

fix: use golang path list separator to not be unix specific

This commit is contained in:
TorchedSammy 2021-11-22 12:45:45 -05:00
förälder 123f8992b1
incheckning 72cf776882
Signerad av: sammyette
GPG-nyckel ID: 904FC49417B44DCD

2
lua.go
Visa fil

@ -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