From: joey Date: Thu, 23 Mar 2006 07:55:36 +0000 (+0000) Subject: slightly better latout X-Git-Tag: 1.0~261 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5230f4e50b5a21f1fca2edd89c981e944cdf05a0;p=ikiwiki.git slightly better latout --- diff --git a/ikiwiki b/ikiwiki index 79b7eff90..6f66c5ea4 100755 --- a/ikiwiki +++ b/ikiwiki @@ -429,20 +429,18 @@ sub main () { #{{{ require IkiWiki::Setup; setup(); } - - lockwiki(); - - if ($config{wrapper}) { + elsif ($config{wrapper}) { + lockwiki(); require IkiWiki::Wrapper; gen_wrapper(); - exit; } - - if ($config{cgi}) { + elsif ($config{cgi}) { + lockwiki(); require IkiWiki::CGI; cgi(); } else { + lockwiki(); loadindex() unless $config{rebuild}; require IkiWiki::Render; rcs_update();