From ea5bded9013239e71c301dd13ec7dfe750c914a6 Mon Sep 17 00:00:00 2001 From: Shawn Hartsell Date: Fri, 5 Apr 2024 13:03:43 -0500 Subject: [PATCH] refactoring test script to use ps instead of lsof when checking for git daemon --- script/test-build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/script/test-build b/script/test-build index 346ec61..5e2da40 100755 --- a/script/test-build +++ b/script/test-build @@ -397,9 +397,8 @@ function fail() { function check_git_daemon { port=$1 - - for _ in {1..10}; do - process=$(lsof -i ":$port" | grep 'git-daemon') + for i in {1..10}; do + process=$(ps aux | grep "git daemon" | grep $port) if [ -z "$process" ]; then echo "Waiting for git daemon to start on port $port..." sleep 1