From 6c554f39574e684cfe3c493690c286a95a4e00fc Mon Sep 17 00:00:00 2001 From: fredrik Date: Tue, 9 Aug 2005 12:31:51 +0000 Subject: [PATCH] Inhibit error message. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@307 959494ce-11ee-0310-bf91-de5d638817bd --- autodlctl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autodlctl b/autodlctl index e5a19f4..496a2c4 100755 --- 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 -- 2.11.0