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 15, 2023
1 parent f430301 commit 8520add
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 8520add

Please sign in to comment.