From 2ebd2b827fda3d8d3b286b6cb754139e69237750 Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Thu, 26 Aug 2021 13:51:19 -0500
Subject: [PATCH] 	modified:   single_tracks.sh

---
 benchmarks/track_fitting/single_tracks.sh | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/benchmarks/track_fitting/single_tracks.sh b/benchmarks/track_fitting/single_tracks.sh
index 2c303428..38747b95 100644
--- a/benchmarks/track_fitting/single_tracks.sh
+++ b/benchmarks/track_fitting/single_tracks.sh
@@ -115,7 +115,13 @@ if [[ -n "${DO_REC}" || -n "${DO_ALL}" ]] ; then
     echo "ERROR running juggler"
     exit 1
   fi
-
+  root_filesize=$(stat --format=%s "${JUGGLER_REC_FILE}")
+  if [[ "${JUGGLER_N_EVENTS}" -lt "500" ]] ; then 
+    # file must be less than 10 MB to upload
+    if [[ "${root_filesize}" -lt "10000000" ]] ; then 
+      cp ${JUGGLER_REC_FILE} results/.
+    fi
+  fi
 fi
 
 
@@ -132,11 +138,4 @@ if [[ -n "${DO_ANALYSIS}" || -n "${DO_ALL}" ]] ; then
   fi
 fi
 
-root_filesize=$(stat --format=%s "${JUGGLER_REC_FILE}")
-if [[ "${JUGGLER_N_EVENTS}" -lt "500" ]] ; then 
-  # file must be less than 10 MB to upload
-  if [[ "${root_filesize}" -lt "10000000" ]] ; then 
-    cp ${JUGGLER_REC_FILE} results/.
-  fi
-fi
 
-- 
GitLab