Skip to content

Commit 6f2c1f7

Browse files
committed
[dev] Fixed missing return code when calling 'wikigen'
1 parent e1c5aaf commit 6f2c1f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

generators/wiki/wikigen

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ options[:generators].each do |g|
5151
options[:sites].each do |s|
5252
myopts[:sites] = [s]
5353
if GLOBAL_GENERATORS.has_key?(g) and s == 'global'
54-
GLOBAL_GENERATORS[g][:gen].new(GLOBAL_GENERATORS[g][:page]).exec(myopts)
54+
ret = GLOBAL_GENERATORS[g][:gen].new(GLOBAL_GENERATORS[g][:page]).exec(myopts)
5555
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)
56+
ret = SITE_GENERATORS[g][:gen].new(s.capitalize + SITE_GENERATORS[g][:page_suffix], s).exec(myopts)
5757
else
5858
puts "Nothing to do: #{g}/#{s}"
5959
end
60+
exit(ret)
6061
end
6162
end

0 commit comments

Comments
 (0)