]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGPP/QA/scripts/runQA.sh
explicitly return a return code
[u/mrichter/AliRoot.git] / PWGPP / QA / scripts / runQA.sh
index a277ea5c02c42742421a80aaa3f13d8ad7fb6264..b141870dce0ae04e4a278dc9a7d9a3f6d1f7ef4b 100755 (executable)
@@ -34,6 +34,7 @@ main()
   fi
 
   updateQA "$@"
+  return 0
 }
 
 updateQA()
@@ -327,6 +328,7 @@ updateQA()
 
   #remove lock
   rm -f ${lockFile}
+  return 0
 }
 
 executePlanB()
@@ -340,8 +342,9 @@ executePlanB()
   if [[ -n ${mailTo} ]]; then 
     echo
     echo "trouble detected, sending email to ${mailTo}"
-    cat ${logSummary} | mail -s "qa in need of assistance" ${mailTo}
+    cat ${logSummary} | mail -s "${detector} QA in need of assistance" ${mailTo}
   fi
+  return 0
 }
 
 validate()
@@ -495,6 +498,7 @@ parseConfig()
     echo "${var}=${value}"
     export ${var}="${value}"
   done
+  return 0
 }
 
 guessRunData()
@@ -555,10 +559,10 @@ guessRunData()
   then
     #error condition
     return 1
-  else
-    #ALL OK
-    return 0
   fi
+  
+  #ALL OK
+  return 0
 }
 
 run2year()
@@ -585,6 +589,7 @@ substituteDetectorName()
   local dir=$2
   [[ ${dir} =~ \%det ]] && det=${det,,} && echo ${dir/\%det/${det}}
   [[ ${dir} =~ \%DET ]] && det=${det} && echo ${dir/\%DET/${det}}
+  return 0
 }
 
 get_realpath() 
@@ -702,6 +707,8 @@ hostInfo(){
         echo
         echo
         echo
+  
+  return 0
 }
 
 main "$@"