Missing assets are an error
This commit is contained in:
parent
9071b5e7b9
commit
af0c52ac2a
1 changed files with 5 additions and 0 deletions
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue