IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35396


Ignore:
Timestamp:
Apr 12, 2013, 11:00:09 AM (13 years ago)
Author:
bills
Message:

don't fault if rm reports an error but the directory
did get deleted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_cleanup.pl

    r35388 r35396  
    192192            run(command => $command, verbose => $verbose);
    193193        unless ($success) {
    194             my $rc = $error_code >> 8;
    195             my_die("Unable to perform $command return status: $rc", $req_id, $rc);
     194            if (-e $dir) {
     195                my $rc = $error_code >> 8;
     196                my_die("Unable to perform $command return status: $rc", $req_id, $rc);
     197            } else {
     198                print STDERR "rm claimed to fail but directory no longer exists\n";
     199            }
    196200        }
    197201    } else {
Note: See TracChangeset for help on using the changeset viewer.