Skip to content

Commit

Permalink
chefstyle fix
Browse files Browse the repository at this point in the history
Signed-off-by: nikhil2611 <[email protected]>
  • Loading branch information
nikhil2611 committed Feb 2, 2025
1 parent 68291f4 commit 2528fe2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/chef-cli/command/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ def gem_environment
# h["GEM ROOT"] = omnibus_env["GEM_ROOT"]
# h["GEM HOME"] = omnibus_env["GEM_HOME"]
# h["GEM PATHS"] = omnibus_env["GEM_PATH"].split(File::PATH_SEPARATOR)
# rescue OmnibusInstallNotFound
# rescue OmnibusInstallNotFound
h["GEM_ROOT"] = ENV["GEM_ROOT"] if ENV.key?("GEM_ROOT")
h["GEM_HOME"] = ENV["GEM_HOME"] if ENV.key?("GEM_HOME")
h["GEM PATHS"] = ENV["GEM_PATH"].split(File::PATH_SEPARATOR) if ENV.key?("GEM_PATH") && !ENV.key?("GEM_PATH").nil?
# ensure
# h
# ensure
# h
end

def paths
Expand Down
2 changes: 1 addition & 1 deletion lib/chef-cli/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def habitat_env
vendor_dir = File.join(pkg_prefix, "vendor")
path = [
File.join(pkg_prefix, "bin"),
ENV["PATH"].split(File::PATH_SEPARATOR) # Preserve existing PATH
ENV["PATH"].split(File::PATH_SEPARATOR), # Preserve existing PATH
].flatten.uniq

{
Expand Down

0 comments on commit 2528fe2

Please sign in to comment.