Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Commit

Permalink
remove ~ in path when cooking on a windows host to prevent the creati…
Browse files Browse the repository at this point in the history
…on of a folder named ~ which is not usable by chef
  • Loading branch information
jakimowicz committed Nov 22, 2015
1 parent 44adb64 commit 9951ac5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/chef/knife/solo_cook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ def validate!

def provisioning_path
# TODO ~ will likely break on cmd.exe based windows sessions
config_value(:provisioning_path, '~/chef-solo')
if windows_node?
config_value(:provisioning_path, 'chef-solo')
else
config_value(:provisioning_path, '~/chef-solo')
end
end

def sync_kitchen
Expand Down

0 comments on commit 9951ac5

Please sign in to comment.