git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@635
959494ce-11ee-0310-bf91-
de5d638817bd
if [ "$estat" = dbl ]; then
echo -en "${tag}\n${curep}\n" >>"$HOME/dc/autodl/done"
echo -en "${tag}\n$((${curep} + 1))\n" >>"$HOME/dc/autodl/done"
- let curep+=2
+ let "nextep=curep+2"
else
echo -en "${tag}\n${curep}\n" >>"$HOME/dc/autodl/done"
- let curep++
+ let "nextep=curep+1"
fi
- echo "$curep" >curep
+ echo "$nextep" >curep
if [ -r maxep ]; then
- if [ "$curep" -gt "`cat maxep`" ]; then
+ if [ "$nextep" -gt "`cat maxep`" ]; then
echo "$tag has reached max"
echo "$tag" >>"$HOME/dc/autodl/maxed"
fi