]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
explicitly return a return code
authormkrzewic <mikolaj.krzewicki@cern.ch>
Tue, 14 Oct 2014 14:13:58 +0000 (16:13 +0200)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Tue, 14 Oct 2014 14:13:58 +0000 (16:13 +0200)
PWGPP/QA/scripts/runQA.sh

index 9c66d359439cd1729c80793c5fa1c97887fb1b25..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()
@@ -342,6 +344,7 @@ executePlanB()
     echo "trouble detected, sending email to ${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 "$@"