fix excluding of detectors
authormkrzewic <mikolaj.krzewicki@cern.ch>
Thu, 27 Feb 2014 19:07:48 +0000 (20:07 +0100)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Thu, 27 Feb 2014 19:07:48 +0000 (20:07 +0100)
PWGPP/QA/scripts/runQA.sh

index 8ba172b..7aa0696 100755 (executable)
@@ -74,15 +74,10 @@ updateQA()
     detector=${detector##*/}
     
     #skip if excluded
-    skipDetector=0
-    for excluded in ${excludeDetectors}; do
-      if [[ ${detector} =~ ${excluded} ]]; then
-        echo "${detector} is excluded in config, skipping..."
-        skipDetector=1
-        break
-      fi
-    done
-    [[ ${skipDetector} -eq 1 ]] && continue
+    if [[ "${excludeDetectors}" =~ ${detector} ]]; then
+      echo "${detector} is excluded in config, skipping..."
+      continue
+    fi
 
     logSummary=${logDirectory}/summary-${detector}-${dateString}.log
     outputDir=$(substituteDetectorName ${detector} ${outputDirectory})