mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
fix workflows/uniq.yaml
Lines containing # were entirely ignored but some contain a key, e.g. in iclass_default_keys.dic
This commit is contained in:
parent
06a025a736
commit
87d43b87d1
1 changed files with 2 additions and 3 deletions
5
.github/workflows/uniq.yaml
vendored
5
.github/workflows/uniq.yaml
vendored
|
@ -18,6 +18,5 @@ jobs:
|
||||||
- name: check unique keys in dic files
|
- name: check unique keys in dic files
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | grep -v '#' | sort | uniq -i -d -c | sort -n -r "
|
find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | sed 's/ *#.*//;/^$/d' | sort | uniq -i -d -c | sort -n -r "
|
||||||
if [[ $(find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | grep -v '#' | sort | uniq -i -d -c | sort -n -r " | grep -v "./" | wc -l) -gt 0 ]]; then exit 1; fi
|
if [[ $(find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | sed 's/ *#.*//;/^$/d' | sort | uniq -i -d -c | sort -n -r " | grep -v '^\./' | wc -l) -gt 0 ]]; then exit 1; fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue