Fixed bug in findcurep.
[utils.git] / autodlctl
index 2eba96b..4675ad0 100755 (executable)
--- a/autodlctl
+++ b/autodlctl
@@ -12,11 +12,12 @@ function findcurep
        if [ -r maxep ]; then
            if [ "`cat curep`" -le "`cat maxep`" ]; then
                echo curep `cat curep`
+               return 0
            fi
        else
            echo curep `cat curep`
+           return 0
        fi
-       return 0
     fi
     echo none
     return 1