using proc
Some checks failed
Hugo / build (push) Failing after 1m23s

This commit is contained in:
Brooke 2024-03-09 17:08:44 -05:00
parent a0cca0ca34
commit 651129d49b

View file

@ -8,7 +8,7 @@ SERVER_PID=$!
sleep 5 sleep 5
# Check if the server is running # Check if the server is running
if ! ps -p $SERVER_PID > /dev/null; then if [ ! -d "/proc/$SERVER_PID" ]; then
echo "HTTP server failed to start." echo "HTTP server failed to start."
exit 1 exit 1
fi fi