All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 24s
13 lines
386 B
Bash
Executable File
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 |