Check syntax of data/special-requirements

pull/227/head
Michele Locati 2020-12-16 16:34:53 +01:00
parent 46ae7d7ec7
commit 61345cc169
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,12 @@ jobs:
exit 1 exit 1
fi fi
rm data/supported-extensions.sorted rm data/supported-extensions.sorted
sort -o data/special-requirements.sorted data/special-requirements
if ! DIFF="$(diff -u data/special-requirements data/special-requirements.sorted)"; then
printf 'The order of extensions in data/special-requirements is wrong.\nThe list of required changes is:\n\n%s\n' "$DIFF" >&2
exit 1
fi
rm data/special-requirements.sorted
check_syntax_shell: check_syntax_shell:
name: Check shell coding style name: Check shell coding style
runs-on: ubuntu-latest runs-on: ubuntu-latest