slightly better latout
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 23 Mar 2006 07:55:36 +0000 (07:55 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 23 Mar 2006 07:55:36 +0000 (07:55 +0000)
ikiwiki

diff --git a/ikiwiki b/ikiwiki
index 79b7eff90d1744dcbf356eb5cbda1389f7707faf..6f66c5ea4f5abec26f2ce8947407ac934bbf3a19 100755 (executable)
--- 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();