summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2026-01-25 23:05:15 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2026-01-25 23:05:15 +0100
commitf3e9d85a7b46f52750087601fb6ef882b66ca441 (patch)
treea05c02aca8f1771a8c965b245c9beb1b20f27c85
parent1368479a9c40e591b88e1a1a0b545d37ac19fb28 (diff)
tests: fix cgit proxy test
-rwxr-xr-xtests/run-tests.sh7
1 files changed, 6 insertions, 1 deletions
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."