summaryrefslogtreecommitdiff
path: root/fetch_tarballs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fetch_tarballs.sh')
-rwxr-xr-xfetch_tarballs.sh16
1 files changed, 9 insertions, 7 deletions
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