Skip to content

Commit

Permalink
Fix env. variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
fprino committed Oct 4, 2017
1 parent 699675b commit 8b90810
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DataProc/PPass/runPPass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ CHUNKNAME="$1"
shift

runstripped=0
if [ -z "$LPMRunNumber" ]; then
if [ -z "$ALIEN_JDL_LPMRUNNUMBER" ]; then
echo "ALIEN_JDL_LPMRUNNUMBER not defined, run number taken from chunk name"
tmpName=$(basename "$CHUNKNAME")
runnum="${tmpName:2:9}"
runstripped=`echo $runnum | sed 's/^0*//'`
else
runstripped=$LPMRunNumber
runstripped=$ALIEN_JDL_LPMRUNNUMBER
fi

echo runstripped is $runstripped
Expand Down

0 comments on commit 8b90810

Please sign in to comment.