]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
another error corrected
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Jul 2008 16:13:48 +0000 (16:13 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Jul 2008 16:13:48 +0000 (16:13 +0000)
test/cosmic/rawqa.sh

index e0b1ed0a52d8e443d635fe50ec037737daf7d4e9..a88260fe020636d738ba758473a3a6981fba9a9b 100755 (executable)
@@ -64,7 +64,9 @@ PROGRAM=aliroot #`cat $tempfile`
 for filename in $CHUNKS; do
      filename=${filename//\"/} 
      CHUNK=`basename $filename | cut -d "." -f 1,2`
-     SUBCHUNK=${CHUNK#*.}
+     BEG=`expr index "$CHUNK" .`
+     BEG=`expr $BEG - 4`
+     SUBCHUNK=${CHUNK:$BEG}
      echo "Running QA for chunk $filename. Outputs will be stored in "$RUNNUM"/"$CHUNK".   $SUBCHUNK"
      [ -e $RUNNUM"/"$CHUNK ] && { rm -rf   $RUNNUM"/"$CHUNK ; }
      mkdir -p $RUNNUM"/"$CHUNK