From 651129d49bbd6b42d5bd9f3c6eb3af0aec34a278 Mon Sep 17 00:00:00 2001 From: Brooke Date: Sat, 9 Mar 2024 17:08:44 -0500 Subject: [PATCH] using proc --- bin/test_static_page.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/test_static_page.sh b/bin/test_static_page.sh index d651c1d..e9571f6 100755 --- a/bin/test_static_page.sh +++ b/bin/test_static_page.sh @@ -8,7 +8,7 @@ SERVER_PID=$! sleep 5 # 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." exit 1 fi