From f3e9d85a7b46f52750087601fb6ef882b66ca441 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 25 Jan 2026 23:05:15 +0100 Subject: tests: fix cgit proxy test --- tests/run-tests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 6c64707..fec746c 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -104,7 +104,12 @@ echo Done. echo echo Checking cgit internal hyperlinks : RESULT=$(curl "http://$IP:${PORTS[git]}/" $CURL_FLAGS) -echo $RESULT | grep "=\'/git/" > /dev/null && echo "Broken hyperlinks detected." +if [[ $(echo "$RESULT" | grep "=\'/git/" > /dev/null) ]] +then + echo "Broken hyperlinks detected." +else + echo "The hyperlinks look fine." +fi echo read -n1 -srp "Press any key to stop the server." -- cgit v1.2.3