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 validation_result=1
fi fi
# 10. Check that it includes the correct legal notice (either by checking for the entity reference, or by checking the content) # 10. Check that it includes the correct legal notice (by checking for the entity reference)
echo "[INFO] implementation of inclusion of correct legal notice is pending!" 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 "" echo ""
if [ $validation_result = 0 ] if [ $validation_result = 0 ]
then then
echo "No issues found (but not all checks are implemented)." echo "No issues found."
else else
echo "Issues found!" echo "Issues found!"
fi fi