bglug.it/.gitea/workflows/check_bglug_convention.sh
amreo cba1d86cbf
Some checks failed
Linting markdown on PR / unicode-check (pull_request) Failing after 29s
Sistemato filtro sed e inserito in ci
2025-01-28 23:08:01 +01:00

13 lines
378 B
Bash
Executable File

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