Created
March 14, 2019 09:43
-
-
Save vanduc95/b122f85df620a32c928e2ef8ee439d46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test_command='curl -sL \ | |
-w "%{http_code}\\n" \ | |
"http://localhost:8000/people/" \ | |
-o /dev/null \ | |
--connect-timeout 3 \ | |
--max-time 5' | |
if [[ $(test_command) == "200" ]] ; | |
then | |
echo "OK" ; | |
else | |
echo "KO" ; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment