Missing asset ID detection does not work #28
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
The script has an error on this line https://github.com/dsaltares/fetch-gh-release-asset/blob/master/fetch_github_asset.sh#L48
The
jq
command returnsnull
when it can't find the asset which is then turned into 4 character string"null"
. Therefore the condition that should exit the script with1
is nevertrue
because the string is not empty.This can be verified on this example of empty
assets
array:The script above will output
Asset ID exists: null
and exit with status0
.The text was updated successfully, but these errors were encountered: