File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -87,12 +87,13 @@ if [[ -z $QC_JSON_FROM_OUTSIDE ]]; then
8787 add_QC_JSON ()
8888 {
8989 if [[ ${2} =~ ^consul://.* ]]; then
90- curl -s -o $FETCHTMPDIR /$1 .json " http://alio2-cr1-hv-aliecs.cern.ch:8500/v1/kv/${2/ consul: \/\/ / } ?raw"
90+ TMP_FILENAME=$FETCHTMPDIR /$1 .$RANDOM .$RANDOM .json
91+ curl -s -o $TMP_FILENAME " http://alio2-cr1-hv-aliecs.cern.ch:8500/v1/kv/${2/ consul: \/\/ / } ?raw"
9192 if [[ $? != 0 ]]; then
9293 echo " Error fetching QC JSON $2 "
9394 exit 1
9495 fi
95- JSON_FILES+=" $FETCHTMPDIR / $1 .json "
96+ JSON_FILES+=" $TMP_FILENAME "
9697 else
9798 JSON_FILES+=" ${2} "
9899 fi
@@ -111,7 +112,7 @@ if [[ -z $QC_JSON_FROM_OUTSIDE ]]; then
111112
112113 # TOF matching
113114 if has_detector_qc TOF && [ ! -z " $QC_JSON_TOF_MATCH " ]; then
114- add_QC_JSON TOF ${QC_JSON_TOF_MATCH}
115+ add_QC_JSON matchTOF ${QC_JSON_TOF_MATCH}
115116 fi
116117
117118 for i in ` echo $LIST_OF_GLORECO | sed " s/,/ /g" ` ; do
You can’t perform that action at this time.
0 commit comments