Skip to content

Commit

Permalink
Removed the default set PATH for Windows environments to allow Window…
Browse files Browse the repository at this point in the history
…s images to set the PATH while running
  • Loading branch information
Daniel Githinji committed May 2, 2024
1 parent 60b0747 commit 3e47de5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions util/system/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ import (
// ':' character .
const DefaultPathEnvUnix = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

// DefaultPathEnvWindows is windows style list of directories to search for
// executables. Each directory is separated from the next by a colon
// ';' character .
const DefaultPathEnvWindows = "c:\\Windows\\System32;c:\\Windows"
// DefaultPathEnvWindows is empty to allow windows to set the PATH when it runs
const DefaultPathEnvWindows = ""

func DefaultPathEnv(os string) string {
if os == "windows" {
Expand Down

0 comments on commit 3e47de5

Please sign in to comment.