chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//go:build !windows
|
||||
|
||||
package luaplugin
|
||||
|
||||
import "os"
|
||||
|
||||
func minimalExecEnv() []string {
|
||||
path := os.Getenv("PATH")
|
||||
if path == "" {
|
||||
path = "/usr/local/bin:/usr/bin:/bin"
|
||||
}
|
||||
return []string{
|
||||
"PATH=" + path,
|
||||
"HOME=" + homeEnv(),
|
||||
"LANG=C.UTF-8",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user