We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d17b878 commit c6b991fCopy full SHA for c6b991f
1 file changed
script/enterprise-cutter
@@ -6,7 +6,7 @@ require 'nokogiri'
6
7
ERROR_MESSAGE = """
8
Error: Run the script like this: bundle exec script/enterprise-cutter [DATE] [VERSION]
9
-e.g. bundle exec script/enterprise-cutter 2014-07-8 11.10.340
+e.g. bundle exec script/enterprise-cutter 2014-07-08 11.10.340
10
"""
11
12
if ARGV.length == 0
@@ -50,9 +50,7 @@ begin
50
doc.css('img').each do |img|
51
img['src'] = "/enterprise/#{version}#{img['src']}" if img['src'] =~ /^\//
52
end
53
- doc.css('.not-enterprise').each do |non_ent|
54
- non_ent.remove
55
- end
+ doc.css('.not-enterprise').remove
56
File.open(html_file, 'w') { |file| file.write(doc.to_html) }
57
58
0 commit comments