[Libreoffice-commits] .: download
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Nov 8 03:56:45 PST 2012
download | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 6a0ba09f19f2be35ce33a4aef197b0d3e1915388
Author: Michael Stahl <mstahl at redhat.com>
Date: Thu Nov 8 12:53:30 2012 +0100
download: check that "mv" succeeds too
As reported on list, may fail with weird wget config files...
Change-Id: I258809c3488181dcc7584f5349930287dfacb7b8
diff --git a/download b/download
index 4ceb866..637642d 100755
--- a/download
+++ b/download
@@ -150,9 +150,17 @@ downloaditem()
mv $2 ${i}_broken
else
mv $2 ..
+ if [ $? -ne 0 ]; then
+ echo cannot mv $2 to destination 2>&1 | tee -a $logfile
+ failed="$failed $2"
+ fi
fi
else
mv $2 ..
+ if [ $? -ne 0 ]; then
+ echo cannot mv $2 to destination 2>&1 | tee -a $logfile
+ failed="$failed $2"
+ fi
fi
fi
fi
More information about the Libreoffice-commits
mailing list