From 72cf776882d0ca0c1e29750d434da95b70c4f583 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Mon, 22 Nov 2021 12:45:45 -0500 Subject: [PATCH] fix: use golang path list separator to not be unix specific --- lua.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua.go b/lua.go index 0d90700..bf2d872 100644 --- a/lua.go +++ b/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