X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/6d01db205f41f16755fe7fbe49694b3bba2121c8..70d3d2328cc81e21c444d3f3d27d55cb8ac1611a:/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) {