mirror of https://github.com/dynup/kpatch
test/difftree.sh: Silence warning about looping over find output
Shellcheck emits the following warning: SC2044: For loops over find output are fragile. Use find -exec or a while read loop. Disable it for now. Signed-off-by: Julien Thierry <jthierry@redhat.com>
This commit is contained in:
parent
ac2d6e3759
commit
f876aed900
|
@ -23,6 +23,7 @@ if [[ ! -d $OBJDIR ]]; then
|
|||
fi
|
||||
|
||||
cd "$OBJDIR" || exit 1
|
||||
# shellcheck disable=SC2044
|
||||
for i in $(find ./* -name '*.o')
|
||||
do
|
||||
# copied from kpatch-build/kpatch-gcc; keep in sync
|
||||
|
@ -81,6 +82,7 @@ rm -f "$TEMPDIR/log.txt" > /dev/null 2>&1
|
|||
cd "$RESULTSDIR" || exit 1
|
||||
echo ""
|
||||
echo "Results:"
|
||||
# shellcheck disable=SC2044
|
||||
for i in $(find ./* -iname '*.log')
|
||||
do
|
||||
head -1 "$i" | cut -f2-3 -d':'
|
||||
|
|
Loading…
Reference in New Issue