diff options
Diffstat (limited to 'lib/chef/cookbook/chefignore.rb')
-rw-r--r-- | lib/chef/cookbook/chefignore.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook/chefignore.rb b/lib/chef/cookbook/chefignore.rb index d905e027d6..42de22607b 100644 --- a/lib/chef/cookbook/chefignore.rb +++ b/lib/chef/cookbook/chefignore.rb @@ -62,7 +62,7 @@ class Chef end def find_ignore_file(path) - if File.basename(path) =~ /chefignore/ + if File.basename(path).match?(/chefignore/) path else File.join(path, "chefignore") |