From: Joey Hess Date: Thu, 30 Oct 2008 19:05:58 +0000 (-0400) Subject: require srcdir and destdir params when --render used w/o --setup X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/6ad8b8f7608d58a366b2813a397851f0c1c94411?ds=sidebyside require srcdir and destdir params when --render used w/o --setup The srcdir is needed by --render, so if --setup is not specified, read it at the command line. --- diff --git a/ikiwiki.in b/ikiwiki.in index d2f5d48dc..1a6d18a60 100755 --- a/ikiwiki.in +++ b/ikiwiki.in @@ -98,7 +98,7 @@ sub getconfig () { #{{{ "help|h" => sub { $SIG{__WARN__}=sub {}; die }, ) || usage(); - if (! $config{setup} && ! $config{render}) { + if (! $config{setup}) { loadplugins(); if (@ARGV == 2) { $config{srcdir} = possibly_foolish_untaint(shift @ARGV);