Debian Codegraph @

ansible_collections/community/vmware/tools/check-ignores-order

raw
1 #!/usr/bin/env bash
2 set -eux
3 tmp_file=/tmp/_sorted_file$$
4
5 clean_up () {
6 ARG=$?
7 rm ${tmp_file}
8 exit $ARG
9 }
10 trap clean_up EXIT
11
12
13 export LC_ALL=C
14 for i in $(find tests/sanity -name 'ignore-*.txt'); do
15 sort -u ${i} > ${tmp_file}
16 diff -s ${i} ${tmp_file}
17 done