Commit 6f2c1f77 authored by MICHON Nicolas's avatar MICHON Nicolas
Browse files

[dev] Fixed missing return code when calling 'wikigen'

parent e1c5aaf3
......@@ -51,11 +51,12 @@ options[:generators].each do |g|
options[:sites].each do |s|
myopts[:sites] = [s]
if GLOBAL_GENERATORS.has_key?(g) and s == 'global'
GLOBAL_GENERATORS[g][:gen].new(GLOBAL_GENERATORS[g][:page]).exec(myopts)
ret = GLOBAL_GENERATORS[g][:gen].new(GLOBAL_GENERATORS[g][:page]).exec(myopts)
elsif SITE_GENERATORS.has_key?(g) and s != 'global'
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)
else
puts "Nothing to do: #{g}/#{s}"
end
exit(ret)
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment