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

Signed-off-by: Daniel Githinji <[email protected]>
  • Loading branch information
Daniel Githinji committed Aug 14, 2024
1 parent bcb9400 commit e2a0a84
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 e2a0a84

Please sign in to comment.