Skip to content

Commit

Permalink
curl fail on http error
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bonez committed Nov 1, 2023
1 parent 3ac1e4e commit 67f316b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload-ota.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ BASENAME="startos-${VERSION}-${GIT_HASH}_${PLATFORM}"

SHASUM=$(sha256sum results/$BASENAME.squashfs | awk '{print $1}')

curl -T results/${BASENAME}.squashfs "https://${TARGET}:8443/upload.cgi?key=${KEY}&gitHash=${GIT_HASH}&version=${VERSION}&platform=${PLATFORM}&shasum=${SHASUM}"
curl --fail-with-body -T results/${BASENAME}.squashfs "https://${TARGET}:8443/upload.cgi?key=${KEY}&gitHash=${GIT_HASH}&version=${VERSION}&platform=${PLATFORM}&shasum=${SHASUM}"

0 comments on commit 67f316b

Please sign in to comment.