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 bbef494..9b57532 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) {