bglug.it/.gitea/workflows/check_bglug_convention.sh
amreo 653d21d717
All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 24s
Sistemato bug e file
2025-01-28 23:22:08 +01:00

13 lines
386 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 -n "${OUTPUT}" | grep -c "")
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