summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-10 12:44:20 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-10 12:44:20 -0800
commitf3b397fe53450171b3e284d25533cceab9ef99ac (patch)
tree2bc779f0674ba1a026cd689a370a06a50dcead8b
parentfcc18aa5062932ca52498328d410910d64bb0eb9 (diff)
downloadchef-f3b397fe53450171b3e284d25533cceab9ef99ac.tar.gz
fix windows path issues correctly
this really closes #1515 and #1751
-rw-r--r--lib/chef/application/solo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/application/solo.rb b/lib/chef/application/solo.rb
index c5d7549ffe..058910089f 100644
--- a/lib/chef/application/solo.rb
+++ b/lib/chef/application/solo.rb
@@ -219,7 +219,7 @@ class Chef::Application::Solo < Chef::Application
Chef::Log.deprecation("-r MUST be changed to --recipe-url, the -r option will be changed in Chef 13.0") if ARGV.include?("-r")
if Chef::Config[:recipe_url]
- cookbooks_path = Array(Chef::Config[:cookbook_path]).detect{|e| e =~ /#{Chef::Config.platform_path_separator_escaped}cookbooks#{Chef::Config.platform_path_separator_escaped}*$/ }
+ cookbooks_path = Array(Chef::Config[:cookbook_path]).detect{|e| Pathname.cleanpath(e) =~ /\/cookbooks\/*$/ }
recipes_path = File.expand_path(File.join(cookbooks_path, ".."))
if Chef::Config[:delete_entire_chef_repo]