IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2007, 5:41:36 PM (19 years ago)
Author:
Paul Price
Message:

Fixing up workdir, so that operations go into the current directory if workdir is NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/diff.pro

    r12113 r12368  
    141141
    142142    ## generate output log based on filerule
    143     $outroot = `ipp_datapath.pl $WORKDIR`
     143    if ($WORKDIR == NULL)
     144      $outroot = `pwd`
     145    else
     146      $outroot = `ipp_datapath.pl $WORKDIR`
     147    end
    144148    $outroot = $outroot/diff$DIFF_ID
    145149    $logfile = $outroot/skycell.log
     
    153157    # create the command line
    154158    if ($VERBOSE > 1)
    155       echo command diff_skycell.pl --diff_id $DIFF_ID --workdir $WORKDIR $ARGS
     159      echo command diff_skycell.pl --diff_id $DIFF_ID --workdir $outroot $ARGS
    156160    end
    157     command diff_skycell.pl --diff_id $DIFF_ID --workdir $WORKDIR $ARGS
     161    command diff_skycell.pl --diff_id $DIFF_ID --workdir $outroot $ARGS
    158162  end
    159163
Note: See TracChangeset for help on using the changeset viewer.