aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/check-near-bragg1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/check-near-bragg b/scripts/check-near-bragg
index 9b72c0cb..28347831 100755
--- a/scripts/check-near-bragg
+++ b/scripts/check-near-bragg
@@ -26,6 +26,7 @@ while ( $line = <FH> ) {
if ( $line =~ /^Peak statistics/ ) {
close(TMP);
system("hdfsee ".$filename." --peak-overlay=list.tmp --binning=1 --int-boost=10");
+ if ( $? != 0 ) { exit; }
unlink("list.tmp");
open(TMP, "> list.tmp");
$handled = 1;