1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

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

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