Skip to content

Commit

Permalink
updated the undo path for windows
Browse files Browse the repository at this point in the history
Signed-off-by: nikhil2611 <[email protected]>
  • Loading branch information
nikhil2611 committed Dec 13, 2023
1 parent 866ca52 commit 3767418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chef-cli/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def expected_omnibus_root

def default_package_home
if Chef::Platform.windows?
File.join(ENV["LOCALAPPDATA"], ChefCLI::Dist::PRODUCT_PKG_HOME)
File.join(ENV["LOCALAPPDATA"], ChefCLI::Dist::PRODUCT_PKG_HOME).gsub('\\','/')
else
File.expand_path("~/.#{ChefCLI::Dist::PRODUCT_PKG_HOME}")
end
Expand Down

0 comments on commit 3767418

Please sign in to comment.