From ddb7a7c71b68af50597474dd678380f6159ff767 Mon Sep 17 00:00:00 2001 From: Daniel Githinji Date: Thu, 2 May 2024 08:28:16 +0300 Subject: [PATCH] Removed the default set PATH for Windows environments to allow Windows images to set the PATH while running Signed-off-by: Daniel Githinji --- util/system/path.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/util/system/path.go b/util/system/path.go index cdfff68007f5..47160034c47c 100644 --- a/util/system/path.go +++ b/util/system/path.go @@ -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" {