hugo-site/testWeb.sh
2021-07-29 19:31:01 +02:00

12 lines
196 B
Bash
Executable File

#!/bin/bash
echo "TEST WEB"
url=http://localhost:9999
curl ${url} -I -o headers -s
reponse=$(cat headers | head -n 1 | cut '-d ' '-f2')
if [ $reponse == "200" ]
then
echo "SUCCESS"
exit 0
fi