From dd33ab04c42f29ca9e490558464a467c701e683b Mon Sep 17 00:00:00 2001 From: Hans-Joachim Lankenau Date: Fri, 15 Jan 2010 16:26:10 +0100 Subject: ause110: #i106731# missing bits and minor fixes --- fetch_tarballs.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'fetch_tarballs.sh') diff --git a/fetch_tarballs.sh b/fetch_tarballs.sh index a41cc429c2aa..b8c85576ca68 100755 --- a/fetch_tarballs.sh +++ b/fetch_tarballs.sh @@ -66,11 +66,13 @@ for i in `cat $1` ; do failed="$failed $i" wret=0 fi - sum=`md5sum $i | sed "s/ [ *].*//"` - sum2=`echo $i | sed "s/-.*//"` - if [ "$sum" != "$sum2" ]; then - echo checksum failure for $i - failed="$failed $i" + if [ -f $i ]; then + sum=`md5sum $i | sed "s/ [ *].*//"` + sum2=`echo $i | sed "s/-.*//"` + if [ "$sum" != "$sum2" ]; then + echo checksum failure for $i + failed="$failed $i" + fi fi cd - > /dev/null fi @@ -83,7 +85,7 @@ done #done #popd > /dev/null -if [ ! -z $failed ]; then - echo "failed downloads: $failed" +if [ ! -z "$failed" ]; then + echo $failed | sed "s/ /\n/g" | sed "s/^/ERROR: failed to download: /" fi -- cgit v1.2.3