Fix bug in shell arithmetic

1. I got a syntax error in ccollect.sh once in a while, i think at
rollover. I changed the line

   j=$((j+1))

to

   j=$(($j+1))

(twice) and the error went away.
This commit is contained in:
Jeroen Bruijning 2008-06-13 11:34:43 +02:00 committed by Nico Schottelius
parent 40cef5f7a4
commit 5809571ca0
1 changed files with 2 additions and 2 deletions

View File

@ -472,7 +472,7 @@ while [ "${i}" -lt "${no_sources}" ]; do
pcmd rm $VVERBOSE -rf "${ddir}/${realincomplete}" || \
_exit_err "Removing ${realincomplete} failed."
fi
j=$((j+1))
j=$(($j+1))
done
#
@ -505,7 +505,7 @@ while [ "${i}" -lt "${no_sources}" ]; do
_techo "Removing ${to_remove} ..."
pcmd rm ${VVERBOSE} -rf "${ddir}/${to_remove}" || \
_exit_err "Removing ${to_remove} failed."
j=$((j+1))
j=$(($j+1))
done
fi