]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
don't exit sub via next
authorJoey Hess <joey@kitenet.net>
Sun, 21 Aug 2011 21:36:29 +0000 (17:36 -0400)
committerJoey Hess <joey@kitenet.net>
Sun, 21 Aug 2011 21:36:29 +0000 (17:36 -0400)
ikiwiki-mass-rebuild

index bbef4946bb5b76d4aa6f5a291b253ada42309529..9b57532bcce1897454b46a08ef62055c6982525c 100755 (executable)
@@ -29,7 +29,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) {