diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-11-08 12:53:30 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-11-08 12:54:24 +0100 |
commit | 6a0ba09f19f2be35ce33a4aef197b0d3e1915388 (patch) | |
tree | 63ccef1b5456c3d92414ac62df8bcd4f36455e38 /download | |
parent | 639c1043260c7737e46eb0bead2f5bbe1e758edf (diff) |
download: check that "mv" succeeds too
As reported on list, may fail with weird wget config files...
Change-Id: I258809c3488181dcc7584f5349930287dfacb7b8
Diffstat (limited to 'download')
-rwxr-xr-x | download | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |