summaryrefslogtreecommitdiff
path: root/fetch_tarballs.sh
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2010-01-15 16:26:10 +0100
committerHans-Joachim Lankenau <hjs@openoffice.org>2010-01-15 16:26:10 +0100
commit0be6e28624e0f9272a239eb8e0a512928a00f7ba (patch)
treec9fee2e6ab45cd2ba18e192191a3ee5ded29a476 /fetch_tarballs.sh
parenta9078aa1cca7db2bd4b09948daba468dcc172ffb (diff)
ause110: #i106731# missing bits and minor fixes
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 a4c681cd1..8d9871acb 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