mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 08:42:42 +01:00
fix: Continue when range request fails (#680)
This commit is contained in:
1 parent
c6d3dda171
commit
debb4b69fc
1 file changed
+6
-2
+6
-2
@@ -122,9 +122,13 @@ if [ ! -f "$RDC" ]; then
|
||||
{ curl -r "$POS" -sfk -S -o "$RD" "$LOC"; rc=$?; } || :
|
||||
|
||||
fKill "progress.sh"
|
||||
(( rc != 0 )) && error "Failed to download $LOC, reason: $rc" && exit 60
|
||||
|
||||
SUM=$(md5sum "$RD" | cut -f 1 -d " ")
|
||||
if (( rc != 0 )); then
|
||||
(( rc != 22 )) && error "Failed to download $LOC, reason: $rc" && exit 60
|
||||
SUM="skip"
|
||||
else
|
||||
SUM=$(md5sum "$RD" | cut -f 1 -d " ")
|
||||
fi
|
||||
|
||||
if [ "$SUM" != "$VERIFY" ]; then
|
||||
|
||||
|
||||
Reference in new issue
Block a user