hugo-site/testWeb.sh
2021-07-29 18:03:35 +02:00

10 lines
159 B
Bash
Executable File

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