Stripping the "0" from the run number (was removed, but we need it in production).
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Dec 2012 09:35:44 +0000 (09:35 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Dec 2012 09:35:44 +0000 (09:35 +0000)
PWGPP/CalibMacros/CPass0/mergeMakeOCDB.byComponent.sh
PWGPP/CalibMacros/CPass0/mergeMakeOCDB.sh
PWGPP/CalibMacros/CPass1/mergeMakeOCDB.byComponent.sh

index 3056085..bf47fa7 100755 (executable)
@@ -43,7 +43,7 @@ fi
 
 # init
 path=$1
-run=$2
+run=$(echo "$2" | sed 's/^0*//')
 ocdb=$3
 defaultOCDB="raw://"
 [[ -n $4 ]] && defaultOCDB=$4
index db77c40..81816f0 100755 (executable)
@@ -16,7 +16,7 @@
 # $3 = OCDB path
 
 path=$1
-runNumber=$2
+runNumber=`echo "$2" | sed 's/^0*//'`
 outputOCDB=$3
 
 # if fourth argument given, its the default OCDB, otherwise use the default raw://
index 3056085..bf47fa7 100755 (executable)
@@ -43,7 +43,7 @@ fi
 
 # init
 path=$1
-run=$2
+run=$(echo "$2" | sed 's/^0*//')
 ocdb=$3
 defaultOCDB="raw://"
 [[ -n $4 ]] && defaultOCDB=$4