Index: trunk/ippScripts/scripts/detrend_reject_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_reject_imfile.pl	(revision 11502)
+++ trunk/ippScripts/scripts/detrend_reject_imfile.pl	(revision 11829)
@@ -313,5 +313,5 @@
 
     warn($msg);
-    if ($det_id and $iter and $exp_tag) {
+    if ($det_id and $iter and $exp_tag and not $no_update) {
 	my $command = "$dettool -addresidexp -det_id $det_id -iteration $iter -exp_tag $exp_tag -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
