We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1c5aaf commit 6f2c1f7Copy full SHA for 6f2c1f7
generators/wiki/wikigen
@@ -51,11 +51,12 @@ options[:generators].each do |g|
51
options[:sites].each do |s|
52
myopts[:sites] = [s]
53
if GLOBAL_GENERATORS.has_key?(g) and s == 'global'
54
- GLOBAL_GENERATORS[g][:gen].new(GLOBAL_GENERATORS[g][:page]).exec(myopts)
+ ret = GLOBAL_GENERATORS[g][:gen].new(GLOBAL_GENERATORS[g][:page]).exec(myopts)
55
elsif SITE_GENERATORS.has_key?(g) and s != 'global'
56
- SITE_GENERATORS[g][:gen].new(s.capitalize + SITE_GENERATORS[g][:page_suffix], s).exec(myopts)
+ ret = SITE_GENERATORS[g][:gen].new(s.capitalize + SITE_GENERATORS[g][:page_suffix], s).exec(myopts)
57
else
58
puts "Nothing to do: #{g}/#{s}"
59
end
60
+ exit(ret)
61
62
0 commit comments