Skip to content

Commit a56a433

Browse files
committed
fix(quickget): exit on curl failure in web_get
Add exit 1 after curl failure handling in web_get - Exit immediately when a download via curl fails - Prevent continuing to build invalid VM configs after failed download Fixes #1625
1 parent 57cd52b commit a56a433

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quickget

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,6 +1618,7 @@ function web_get() {
16181618
if ! curl --disable --progress-bar --location --output "${DIR}/${FILE}" --continue-at - --user-agent "${USER_AGENT}" "${HEADERS[@]}" -- "${URL}"; then
16191619
echo "ERROR! Failed to download ${URL} with curl."
16201620
rm -f "${DIR}/${FILE}"
1621+
exit 1
16211622
fi
16221623
}
16231624

0 commit comments

Comments
 (0)