Avoided use of "let" in releng/run_all_auto in favor of "expr"

This commit is contained in:
Thomas Schmitt 2011-08-14 11:19:38 +00:00
parent 2043d7ee66
commit 2b3342c9c0

View File

@ -144,7 +144,7 @@ fi
# echo "RET='$RET'" >/dev/tty # echo "RET='$RET'" >/dev/tty
T2=`date '+%s'` T2=`date '+%s'`
let TS="${T2} - ${T1}" TS=`expr ${T2} - ${T1}`
case ${RET} in case ${RET} in
0) 0)
echo "done in ${TS} sec. ok." echo "done in ${TS} sec. ok."
@ -181,7 +181,7 @@ fi
if [ ${E2} -eq ${E1} ]; then if [ ${E2} -eq ${E1} ]; then
echo " Total elapsed 0 sec." | tee -a ${CLOG} echo " Total elapsed 0 sec." | tee -a ${CLOG}
else else
let ES="${E2} - ${E1}" ES=`expr ${E2} - ${E1}`
echo " Total elapsed ${ES} sec." | tee -a ${CLOG} echo " Total elapsed ${ES} sec." | tee -a ${CLOG}
fi fi
##### #####