for #1235: Add legal notice validation

This adds a check for the usage of the _entity reference_ that is the legal notice.
This commit is contained in:
Guus der Kinderen 2022-11-06 19:20:34 +01:00
parent 56cef32c91
commit 028fd1a685
1 changed files with 9 additions and 3 deletions

View File

@ -183,13 +183,19 @@ else
validation_result=1
fi
# 10. Check that it includes the correct legal notice (either by checking for the entity reference, or by checking the content)
echo "[INFO] implementation of inclusion of correct legal notice is pending!"
# 10. Check that it includes the correct legal notice (by checking for the entity reference)
if grep -q "&LEGALNOTICE;" "$1"
then
echo "[PASS] entity reference for the legal notice has been detected."
else
echo "[FAIL] entity reference for the legal notice has not been detected (but it should have been)."
validation_result=1
fi
echo ""
if [ $validation_result = 0 ]
then
echo "No issues found (but not all checks are implemented)."
echo "No issues found."
else
echo "Issues found!"
fi