diffs: - full diff:af34b94a78...6c0a036dce- full diff:4d1f260e84...v0.8.0-rc2 New dependencies: - go.opencensus.io v0.22.3 - github.com/containerd/typeurl v1.0.1 - github.com/golang/groupcache 869f871628b6baa9cfbc11732cdf6546b17c1298 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
19 lines
621 B
Go
19 lines
621 B
Go
package system
|
|
|
|
// DefaultPathEnvUnix is unix style list of directories to search for
|
|
// executables. Each directory is separated from the next by a colon
|
|
// ':' 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"
|
|
|
|
func DefaultPathEnv(os string) string {
|
|
if os == "windows" {
|
|
return DefaultPathEnvWindows
|
|
}
|
|
return DefaultPathEnvUnix
|
|
}
|