diff options
Diffstat (limited to 'tests')
| -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." |
