diff options
Diffstat (limited to 'lib/chef/mixin/create_path.rb')
-rw-r--r-- | lib/chef/mixin/create_path.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/create_path.rb b/lib/chef/mixin/create_path.rb index 21a945d2ae..c04d4baa92 100644 --- a/lib/chef/mixin/create_path.rb +++ b/lib/chef/mixin/create_path.rb @@ -37,7 +37,7 @@ class Chef file_path = File.expand_path(file_path).split(File::SEPARATOR) file_path.shift if file_path[0] == "" # Check if path starts with a separator or drive letter (Windows) - unless file_path[0].match("^#{File::SEPARATOR}|^[a-zA-Z]:") + unless file_path[0].match?("^#{File::SEPARATOR}|^[a-zA-Z]:") file_path[0] = "#{File::SEPARATOR}#{file_path[0]}" end end |