diff options
author | Kir Kolyshkin <kolyshkin@gmail.com> | 2022-04-13 02:07:56 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2022-08-31 01:42:25 +0300 |
commit | 527a4ce97f6348035fc62faff9ade018f0e83db8 (patch) | |
tree | 89dcf126fa609f3e81a626514ae319d7a57fc3b5 | |
parent | 01e643a7778138c709f29391f91c16e8f95ba681 (diff) |
scripts/ci/asan.sh: fix, not ignore, shellcheck warning
We can use globstar bash feature instead of find in this case.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
-rwxr-xr-x | scripts/ci/asan.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/ci/asan.sh b/scripts/ci/asan.sh index 8113b9b19..deeeca0b9 100755 --- a/scripts/ci/asan.sh +++ b/scripts/ci/asan.sh @@ -1,7 +1,5 @@ #!/bin/bash -# shellcheck disable=2044 - set -x cat /proc/self/mountinfo @@ -13,7 +11,8 @@ chmod 0777 test/zdtm/static ./test/zdtm.py run -a --keep-going -k always --parallel 4 -x zdtm/static/rtc "$@" ret=$? -for i in $(find / -name 'asan.log*'); do +shopt -s globstar nullglob +for i in /**/asan.log*; do echo "$i" echo ======================================== cat "$i" |