summaryrefslogtreecommitdiff
path: root/download
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-11-08 12:53:30 +0100
committerMichael Stahl <mstahl@redhat.com>2012-11-08 12:54:24 +0100
commit6a0ba09f19f2be35ce33a4aef197b0d3e1915388 (patch)
tree63ccef1b5456c3d92414ac62df8bcd4f36455e38 /download
parent639c1043260c7737e46eb0bead2f5bbe1e758edf (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-xdownload8
1 files changed, 8 insertions, 0 deletions
diff --git a/download b/download
index 4ceb866ba631..637642db5300 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