diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-08-25 16:32:09 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-08-25 16:32:09 -0700 |
commit | cf74fad25b978b400226c616d4cc70cd21374a34 (patch) | |
tree | 4046979e8163e4f882f00041a70f5b45c4638a00 | |
parent | c2cfa71a400ff49493adc0882373bd55d6141e8a (diff) | |
download | ohai-cf74fad25b978b400226c616d4cc70cd21374a34.tar.gz |
fix case sensitive windows path
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | spec/unit/mixin/shell_out_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/mixin/shell_out_spec.rb b/spec/unit/mixin/shell_out_spec.rb index a7ff5776..e7e194c7 100644 --- a/spec/unit/mixin/shell_out_spec.rb +++ b/spec/unit/mixin/shell_out_spec.rb @@ -37,6 +37,8 @@ describe Ohai::Mixin::ShellOut, "shell_out" do default_paths = ( default_paths + [ "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin" ] ).compact.uniq.join(":") end + path_var = windows? ? "Path" : "PATH" + default_locale = ChefConfig::Config.guess_internal_locale { timeout: timeout, @@ -44,7 +46,7 @@ describe Ohai::Mixin::ShellOut, "shell_out" do "LANG" => default_locale, "LANGUAGE" => default_locale, "LC_ALL" => default_locale, - "PATH" => default_paths, + path_var => default_paths, }, } end |