diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-08-21 17:09:23 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-08-21 17:09:23 -0700 |
commit | 52208ef602e335d6b3b4c24513a5ace018d5e163 (patch) | |
tree | 6daddff13a3fa139457eee2d1856b16d209f48c6 | |
parent | 35a7946499362de10c82660698a2af7a85c06135 (diff) | |
download | ohai-52208ef602e335d6b3b4c24513a5ace018d5e163.tar.gz |
Fix the PATH for the way it gets de-duplicated
The default paths algorithm is a little bit weird
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | spec/unit/mixin/shell_out_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/mixin/shell_out_spec.rb b/spec/unit/mixin/shell_out_spec.rb index b70b41b3..b6284a3b 100644 --- a/spec/unit/mixin/shell_out_spec.rb +++ b/spec/unit/mixin/shell_out_spec.rb @@ -37,7 +37,7 @@ describe Ohai::Mixin::ShellOut, "shell_out" do "LANG" => "en_US.UTF-8", "LANGUAGE" => "en_US.UTF-8", "LC_ALL" => "en_US.UTF-8", - "PATH" => "#{RbConfig::CONFIG["bindir"]}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", + "PATH" => [ "/bin", "/sbin", "/usr/bin", "/usr/sbin", "/usr/local/bin", "/usr/local/sbin", RbConfig::CONFIG["bindir"] ].uniq.reverse.join(':') }, } end |