IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 26, 2009, 9:45:09 AM (17 years ago)
Author:
eugene
Message:

return a useful exit status if more files are pending

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/bin/neb-admin

    r23345 r23560  
    152152       
    153153    exit unless scalar @rows;
     154   
     155    # compare number of responses to limit below
     156    my $Npending = @rows;
    154157
    155158    print "replicatePending MULTI\n\n";
     
    198201    }
    199202
    200     return 1;
     203    # use a different exit status if we hit the limit (likely more files pending)
     204    if ($Npending == $limit) {
     205        exit 1;
     206    }
     207    exit 0;
    201208}
    202 
    203209
    204210sub removal
Note: See TracChangeset for help on using the changeset viewer.