Missing assets are an error

This commit is contained in:
Michael Hansen 2022-05-05 16:28:21 -04:00
commit af0c52ac2a

View file

@ -91,6 +91,11 @@ upload_url="$(jq --raw-output '.upload_url' < "${response_json}" | sed -e 's/{[^
# Upload assets
while [ -n "$2" ]; do
asset_path="$1"
if [ ! -f "${asset_path}" ]; then
echo "Missing asset: ${asset_path}"
exit 1;
fi
asset_content_type="$2"
upload_asset "${upload_url}" "${asset_path}" "${asset_content_type}"