Minor cosmetics of mlog2db

This commit is contained in:
Bastian M. Wojek 2008-09-07 11:44:27 +00:00
parent eaa297ef6e
commit 43693a3412

View File

@ -78,22 +78,16 @@ if [ "${1:0:1}" == "[" ]; then
else else
RUNARRAY[$i]=${RUNARRAY[$i]%"]"} RUNARRAY[$i]=${RUNARRAY[$i]%"]"}
LASTRUN=$i LASTRUN=$i
EMPTYENTRY=0
fi fi
fi fi
# echo ${RUNARRAY[$i]} # echo ${RUNARRAY[$i]}
done done
if [ "$EMPTYENTRY" == "1" ]; then EXTENSION=${RUNARRAY[ (( LASTRUN + EMPTYENTRY + 1 )) ]}
EXTENSION=${RUNARRAY[ (( LASTRUN + 2 )) ]} OPT_PAR_ONE=${RUNARRAY[ (( LASTRUN + EMPTYENTRY + 2 )) ]}
OPT_PAR_ONE=${RUNARRAY[ (( LASTRUN + 3 )) ]} OPT_PAR_TWO=${RUNARRAY[ (( LASTRUN + EMPTYENTRY + 3 )) ]}
OPT_PAR_TWO=${RUNARRAY[ (( LASTRUN + 4 )) ]} OPT_PAR_THREE=${RUNARRAY[ (( LASTRUN + EMPTYENTRY + 4 )) ]}
OPT_PAR_THREE=${RUNARRAY[ (( LASTRUN + 5 )) ]}
else
EXTENSION=${RUNARRAY[ (( LASTRUN + 1 )) ]}
OPT_PAR_ONE=${RUNARRAY[ (( LASTRUN + 2 )) ]}
OPT_PAR_TWO=${RUNARRAY[ (( LASTRUN + 3 )) ]}
OPT_PAR_THREE=${RUNARRAY[ (( LASTRUN + 4 )) ]}
fi
else # start and end-runs are given else # start and end-runs are given
for (( j=0; j<=$2-$1; j++ )); for (( j=0; j<=$2-$1; j++ ));