path_deprecated.go 581 B

123456789101112131415161718
  1. package system
  2. const defaultUnixPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  3. // DefaultPathEnv is unix style list of directories to search for
  4. // executables. Each directory is separated from the next by a colon
  5. // ':' character .
  6. // For Windows containers, an empty string is returned as the default
  7. // path will be set by the container, and Docker has no context of what the
  8. // default path should be.
  9. //
  10. // Deprecated: use oci.DefaultPathEnv
  11. func DefaultPathEnv(os string) string {
  12. if os == "windows" {
  13. return ""
  14. }
  15. return defaultUnixPathEnv
  16. }