diff --git a/bin/test_static_page.sh b/bin/test_static_page.sh index 14f4c97..c181c18 100644 --- a/bin/test_static_page.sh +++ b/bin/test_static_page.sh @@ -1,4 +1,5 @@ #!/bin/bash + PORT=8080 python3 -m http.server $PORT --directory public/ & @@ -8,7 +9,7 @@ SERVER_PID=$! sleep 2 # Check if the server is running -if ! ps -p $SERVER_PID > /dev/null; then +if ! pgrep -P $SERVER_PID > /dev/null; then echo "HTTP server failed to start." exit 1 fi