Inhibit error message.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 9 Aug 2005 12:31:51 +0000 (12:31 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 9 Aug 2005 12:31:51 +0000 (12:31 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@307 959494ce-11ee-0310-bf91-de5d638817bd

autodlctl

index e5a19f4..496a2c4 100755 (executable)
--- a/autodlctl
+++ b/autodlctl
@@ -20,7 +20,10 @@ function getnext
        echo "$tag" >>"$HOME/dc/autodl/faulty"
        return 1
     fi
-    badsizesl="$(sed -n "s/^$curep \(.*\)$/\1/p" "$d/.autodl/badsizes")"
+    unset badsizesl
+    if [ -r "$d/.autodl/badsizes" ]; then
+       badsizesl="$(sed -n "s/^$curep \(.*\)$/\1/p" "$d/.autodl/badsizes")"
+    fi
     if [ -n "$badsizesl" ]; then
        read -a badsizes <<<"$badsizesl"
        unset badsizesl