mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
scripts: Use curl -f (--fail).
This makes curl exit with nonzero status on HTTP 4xx/5xx errors. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
e373df88e0
commit
47897c76a2
@@ -8,7 +8,7 @@
|
||||
#BRANCH=
|
||||
#SSH_SECRET_ID=
|
||||
|
||||
if ! curl -s -m 5 http://169.254.169.254/latest/dynamic/instance-identity/document | grep instanceId; then
|
||||
if ! curl -fLs -m 5 http://169.254.169.254/latest/dynamic/instance-identity/document | grep instanceId; then
|
||||
echo "This should be run on AWS instances, not locally."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user