test 7
Some checks failed
Check for disallowed chars / unicode-check (pull_request) Failing after 2m20s

This commit is contained in:
Paolo Asperti 2024-08-04 18:19:23 +02:00
parent cffaddafca
commit 605cb4a674
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -16,8 +16,10 @@ jobs:
- name: Check for disallowed chars - name: Check for disallowed chars
run: | run: |
set -x
modifiche=$(git diff --unified=0 ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} content/ | grep -E "^[+]" | grep -Ev '^(--- a/|\+\+\+ b/)') modifiche=$(git diff --unified=0 ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} content/ | grep -E "^[+]" | grep -Ev '^(--- a/|\+\+\+ b/)')
num=$(echo $modifiche | grep -c -e '[\u2014]' -e '[\u2018]' -e '[\u2019]' -e '[\u201C]' -e '[\u201D]' -e '[\u2026]' ) num=$(echo $modifiche | grep -c -e '[\u2014]' -e '[\u2018]' -e '[\u2019]' -e '[\u201C]' -e '[\u201D]' -e '[\u2026]' )
if [ $num -gt 0 ] ; then exit 1 ; else echo "ok" ; done
echo "modifiche: $modifiche" echo "modifiche: $modifiche"
echo "num: $num" echo "num: $num"
if [ $num -gt 0 ] ; then exit 1 ; else echo "ok" ; done