From: fredrik Date: Tue, 9 Aug 2005 12:31:51 +0000 (+0000) Subject: Inhibit error message. X-Git-Url: http://dolda2000.com/gitweb/?p=utils.git;a=commitdiff_plain;h=6c554f39574e684cfe3c493690c286a95a4e00fc;hp=a9da636652aa8af2facfa24e56c68c19599e60bf Inhibit error message. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@307 959494ce-11ee-0310-bf91-de5d638817bd --- 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