From: fredrik Date: Wed, 31 May 2006 17:30:43 +0000 (+0000) Subject: Fix bug in bad file reporting. X-Git-Url: http://dolda2000.com/gitweb/?p=utils.git;a=commitdiff_plain;h=46b10ab79346e3865966a40fe544ec06ece7e03e Fix bug in bad file reporting. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@635 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/autodlctl b/autodlctl index 8f551de..e367a7c 100755 --- a/autodlctl +++ b/autodlctl @@ -113,14 +113,14 @@ function getnext 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