From 46b10ab79346e3865966a40fe544ec06ece7e03e Mon Sep 17 00:00:00 2001 From: fredrik Date: Wed, 31 May 2006 17:30:43 +0000 Subject: [PATCH] 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 --- autodlctl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.11.0