IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 10, 2009, 2:45:17 PM (16 years ago)
Author:
bills
Message:

in my_die replace error code if !$error_code instead of !defined $error_code. Checking
for defined was trying to set fault to zero which won't work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/dist_cleanup.pl

    r26094 r26096  
    181181{
    182182    my $msg = shift;            # Warning message on die
    183     my $dist_id = shift;    # Magic DS identifier
    184     my $exit_code = shift;      # Exit code to add
    185 
    186     $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code;
     183    my $dist_id = shift;        # distRun identifier
     184    my $exit_code = shift;      # fault code
     185
     186    # replace exit code if it's nonzero
     187    $exit_code = $PS_EXIT_PROG_ERROR unless $exit_code;
    187188
    188189    my $command = "$disttool -updaterun";
Note: See TracChangeset for help on using the changeset viewer.