Skip to content

Commit

Permalink
Update cerdalux.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
therealdreg committed Jul 19, 2023
1 parent edcae71 commit 0fb54db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cerdalux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
- uses: actions/checkout@v3

- name: Error if exist tab char
run: find . -iregex '.*\.\(asm\|txt|rap|md\)' -exec sh -c 'grep -rnIHF $'\t' $1 && exit 1' _ {} \;
run: find . -iregex '.*\.\(asm\|txt|rap|md\)' -exec sh -c 'grep --binary -HnP "\x09" $1 && exit 1' _ {} \;

- name: Error if exist trailing chars
run: find . -iregex '.*\.\(asm\|txt|rap|md\)' -exec sh -c 'grep -ErnIH " +$" $1 && exit 1' _ {} \;
run: find . -iregex '.*\.\(asm\|txt|rap|md\)' -exec sh -c 'grep --binary -HnP "\x20\x0d" $1 && exit 1' _ {} \; && find . -iregex '.*\.\(asm\|txt|rap|md\)' -exec sh -c 'grep --binary -HnP "\x20\x0a" $1 && exit 1' _ {} \;

- name: Error if .asm files are not crlf ended
run: find . -iregex '.*\.\(asm\)' -exec sh -c 'echo $1; xxd -p $1; xxd -p $1 | tr -d "\n" | grep -P "(?<!0d)0a" && echo $1 && exit 1' _ {} \;
Expand Down

0 comments on commit 0fb54db

Please sign in to comment.