Skip to content
Discussion options

You must be logged in to vote

UpSnap does not parse the response. It will only set the status if the command failed or succeeded. In your case the command always succeeds regardless of the response. You would need to check the output with something like:

curl -s https://example.com/api | grep -qx '0'

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by trunzoc
Comment options

You must be logged in to vote
1 reply
@seriousm4x
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants