Fix bug in bad file reporting.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 31 May 2006 17:30:43 +0000 (17:30 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 31 May 2006 17:30:43 +0000 (17:30 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@635 959494ce-11ee-0310-bf91-de5d638817bd

autodlctl

index 8f551de..e367a7c 100755 (executable)
--- 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