Skip to content

Commit af9c1ee

Browse files
committed
Better error detection
1 parent 1eb4b7a commit af9c1ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MC/run/ANCHOR/2021/OCT/pass4/anchorMC.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ echo "Setting back ALIEN_JDL_LPMPRODUCTIONTAG to $ALIEN_JDL_LPMPRODUCTIONTAG"
6161
${O2DPG_ROOT}/UTILS/parse-async-WorkflowConfig.py
6262

6363
# check if config reasonably created
64-
if [[ `grep "o2-ctf-reader-workflow-options" config-json.json 2> /dev/null | wc` == "0" ]]; then
65-
echo "Problem in anchor config creation"
64+
if [[ `grep "o2-ctf-reader-workflow-options" config-json.json 2> /dev/null | wc -l` == "0" ]]; then
65+
echo "Problem in anchor config creation. Stopping."
6666
exit 1
6767
fi
6868

0 commit comments

Comments
 (0)