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
commitdd33ab04c42f29ca9e490558464a467c701e683b (patch)
treea56c7eb8247718eaf8f2f7b41bcafe79912c964d /fetch_tarballs.sh
parenta96692642a1653de11782a98abe0ba5cd6779269 (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 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