diff options
author | Claire McQuin <claire@getchef.com> | 2014-09-19 11:36:56 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-09-22 11:22:29 -0700 |
commit | 60ab3608d7eb3d8498e00deb282f8974e305ad48 (patch) | |
tree | b88a6993b3a8f360a08b59869ad6022dc2f1e7ff /lib/chef/cookbook_loader.rb | |
parent | 655fc195e18f4bf3802718003ced9bc5ee25f163 (diff) | |
download | chef-60ab3608d7eb3d8498e00deb282f8974e305ad48.tar.gz |
Escape path for globbing.
Diffstat (limited to 'lib/chef/cookbook_loader.rb')
-rw-r--r-- | lib/chef/cookbook_loader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook_loader.rb b/lib/chef/cookbook_loader.rb index d569cdd008..c05fedb141 100644 --- a/lib/chef/cookbook_loader.rb +++ b/lib/chef/cookbook_loader.rb @@ -161,7 +161,7 @@ class Chef @all_files_in_repo_paths ||= begin @repo_paths.inject([]) do |all_children, repo_path| - all_children += Dir[File.join(repo_path, "*")] + all_children += Dir[File.join(Chef::Util::PathHelper.escape_glob(repo_path), "*")] end end end |