From 7b1de15d12c643f6cafca251e983ff0111eec554 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 422651ecea5c..be6d9db0e9b5 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" {