git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@850
959494ce-11ee-0310-bf91-
de5d638817bd
wait $pid
stat=$?
if [ -r "$estatfile" ]; then
wait $pid
stat=$?
if [ -r "$estatfile" ]; then
- estat="`cat "$estatfile"`"
+ estat=(`cat "$estatfile"`)
rm -f "$estatfile"
fi
if [ "$intr" = y ]; then
rm -f "$estatfile"
fi
if [ "$intr" = y ]; then
if [ "$estat" = bad ]; then
echo "episode reported as bad, adding to badlist"
echo "$curep" >>badlist
if [ "$estat" = bad ]; then
echo "episode reported as bad, adding to badlist"
echo "$curep" >>badlist
+ elif [ "${estat[0]}" = badsize ]; then
+ echo "size reported as bad"
+ echo "$curep" >>badlist
+ echo "$curep ${estat[1]}" >>badsizes
fi
if ! findcurep; then
echo "no more episodes to download from $tag"
fi
if ! findcurep; then
echo "no more episodes to download from $tag"