Skip to content

Commit

Permalink
[COOK-3683] Correct #match call for checking the current plugin version
Browse files Browse the repository at this point in the history
Signed-off-by: Seth Vargo <sethvargo@gmail.com>
  • Loading branch information
eheydrick authored and sethvargo committed Sep 30, 2013
1 parent 8da3e59 commit 29e8b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def current_version
manifest_file = ::File.join(plugins_dir, @current_resource.name, 'META-INF', 'MANIFEST.MF')
if ::File.exist?(manifest_file)
manifest = IO.read(manifest_file)
current_version = manifest.match(/^Plugin-Version:\s*(.+)$/).strip
current_version = manifest.match(/^Plugin-Version:\s*(.+)$/)[1].strip
end
current_version
end
Expand Down

0 comments on commit 29e8b9d

Please sign in to comment.