diff options
author | Tim Smith <tsmith@chef.io> | 2021-05-11 08:45:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 08:45:02 -0700 |
commit | f699723a80bd7992ac0c643439e89ab8e0875c3a (patch) | |
tree | 34747009072d2433ba2074fa6657bf338fbd7c9c | |
parent | f80bfa4e5f654107a9814cec5710e9b837f83800 (diff) | |
parent | 683d769dcaa9626fc9347f2d5c4470ea97bb8a1d (diff) | |
download | chef-f699723a80bd7992ac0c643439e89ab8e0875c3a.tar.gz |
Merge pull request #11561 from chef/strip_path
Strip the __env_path variable in the which helper
-rw-r--r-- | chef-utils/lib/chef-utils/internal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-utils/lib/chef-utils/internal.rb b/chef-utils/lib/chef-utils/internal.rb index e5a7e65c89..0699618a5a 100644 --- a/chef-utils/lib/chef-utils/internal.rb +++ b/chef-utils/lib/chef-utils/internal.rb @@ -70,7 +70,7 @@ module ChefUtils # def __env_path if __transport_connection - __transport_connection.run_command("echo $PATH").stdout || "" + __transport_connection.run_command("echo $PATH").stdout.chomp || "" else ENV["PATH"] || "" end |