X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/4fdeda0e34bf09db359de4174c7a4fe3808d2588..d3c15aed18ef9e67c3e785ac3cc0426c56e59ac7:/ikiwiki-mass-rebuild diff --git a/ikiwiki-mass-rebuild b/ikiwiki-mass-rebuild index bbef4946b..ce4e084e8 100755 --- a/ikiwiki-mass-rebuild +++ b/ikiwiki-mass-rebuild @@ -1,4 +1,5 @@ #!/usr/bin/perl +no lib '.'; use warnings; use strict; @@ -20,7 +21,7 @@ sub processline { return; } print "Processing $setup as user ".username()." ...\n"; - my $ret=system("ikiwiki", "-setup", $setup, @ARGV); + my $ret=system("ikiwiki", "--setup", $setup, @ARGV); if ($ret != 0) { print STDERR "warning: processing $setup failed with code $ret\n"; } @@ -29,7 +30,7 @@ sub processline { my %users; sub processuser { my $user=shift; - next if $user=~/^-/ || $users{$user}; + return if $user=~/^-/ || $users{$user}; $users{$user}=1; my $ret=system("su", $user, "-s", "/bin/sh", "-c", "--", "$0 --nonglobal @ARGV"); if ($ret != 0) {