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

dev
TorchedSammy 2021-11-22 12:45:45 -05:00
parent 123f8992b1
commit 72cf776882
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

2
lua.go
View File

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