Index: trunk/ippTasks/detrend.process.pro
===================================================================
--- trunk/ippTasks/detrend.process.pro	(revision 12370)
+++ trunk/ippTasks/detrend.process.pro	(revision 12371)
@@ -167,5 +167,5 @@
     $run = detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class_id $CLASS_ID --input_uri $URI --camera $CAMERA $ARGS
     if ("$WORKDIR" != "NULL")
-      $run = $run --workdir $outroot
+      $run = $run --workdir $WORKDIR
     end
 
@@ -289,5 +289,5 @@
     $run = detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG --camera $CAMERA $ARGS
     if ("$WORKDIR" != "NULL")
-      $run = $run --workdir $outroot
+      $run = $run --workdir $WORKDIR
     end
 
