bglug.it/.gitea/workflows/check_fablab_convention.sh
amreo 9a054ac9e1
All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 1m27s
Aggiunto controllo per fablab
2025-02-04 21:27:52 +01:00

13 lines
392 B
Bash
Executable File

#!/bin/bash
RED='\033[0;31m'
NC='\033[0m' # No Color
OUTPUT=$(grep --binary-files=text -rE "fablab" * | .gitea/workflows/check_fablab.sed | grep -ie '.*:.*fablab.*' | grep -v FabLab)
COUNT=$(echo -n "${OUTPUT}" | grep -c "")
if [ "$COUNT" -gt "0" ]; then
echo -e "${RED}FabLab non è stato scritto correttamente: si scrive FabLab!${NC}"
echo "${OUTPUT}"
exit 1
else
exit 0
fi