From 5230f4e50b5a21f1fca2edd89c981e944cdf05a0 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 23 Mar 2006 07:55:36 +0000 Subject: [PATCH] slightly better latout --- ikiwiki | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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(); -- 2.26.2