IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 10, 2013, 11:02:56 AM (13 years ago)
Author:
bills
Message:

check for existence of data store directory before removing it and
ignore errors in rm -r

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStoreServer/scripts/dsreg

    r30455 r35389  
    236236    $dbh->disconnect();
    237237
    238     if ($remove) {
     238    if ($remove and -e $fileset_dir) {
    239239        my $rc;
    240         if (($rc = system "rm -r $fileset_dir")) {
     240        if (($rc = system "rm -rf $fileset_dir")) {
    241241            &my_die("failed to remove $fileset_dir error code: $rc", $PS_EXIT_UNKNOWN_ERROR);
    242242        }
Note: See TracChangeset for help on using the changeset viewer.