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 21a2de2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/chef/knife/solo_cook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ def validate!
end

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 21a2de2

Please sign in to comment.