diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2026-01-25 23:05:15 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2026-01-25 23:05:15 +0100 |
| commit | f3e9d85a7b46f52750087601fb6ef882b66ca441 (patch) | |
| tree | a05c02aca8f1771a8c965b245c9beb1b20f27c85 /tests/run-tests.sh | |
| parent | 1368479a9c40e591b88e1a1a0b545d37ac19fb28 (diff) | |
tests: fix cgit proxy test
Diffstat (limited to 'tests/run-tests.sh')
| -rwxr-xr-x | tests/run-tests.sh | 7 |
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." |
