#!/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