IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35482


Ignore:
Timestamp:
May 2, 2013, 11:43:20 AM (13 years ago)
Author:
bills
Message:

don't fault if rm -r claims to fail if the directory does not exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20130307/pstamp/scripts/pstamp_cleanup.pl

    r35386 r35482  
    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.