1
0
Fork 0
mirror of synced 2025-07-03 20:06:36 +02:00
nginx-ipscrub/ipscrub/test/dynmodule/test.sh
Mason Simon 21582cc86a Init
2018-03-30 17:47:17 -07:00

7 lines
188 B
Bash

red=$'\e[1;31m'
grn=$'\e[1;32m'
end=$'\e[0m'
curl "http://localhost:8081/" > /dev/null 2> /dev/null
[[ $? == 0 ]] && printf "%s\n" "${grn}PASS${end}" || printf "%s\n" "${red}FAIL${end}"