IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24624


Ignore:
Timestamp:
Jun 29, 2009, 1:47:49 PM (17 years ago)
Author:
eugene
Message:

do not fail for a missed input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/chip_outputs.pl

    r21427 r24624  
    8282
    8383    my $neb = "$path$ext"; # Nebulous file
    84     my $source = `neb-locate --path $neb` or die "Unable to locate $neb\n"; # Actual file
     84    my $source = `neb-locate --path $neb`;
     85    if (!$source) {
     86        print "Unable to locate $neb\n"; # Actual file
     87        return;
     88    }
    8589    chomp $source;
    8690    my ($target) = $source =~ m|^.*:(.*)|; # Target name
    87     !system "cp $source $target" or die "Unable to copy $source\n";
     91    my $status = system "cp $source $target";
     92    if ($status) {
     93        print "Unable to copy $source\n";
     94        return;
     95    }
    8896}
Note: See TracChangeset for help on using the changeset viewer.