test: Ignore remaining quoting warnings

Fixing the remaining warnings suggesting to quote the output subshell
invocation would hinder readability. Also the results of dirname and
"type -p" used in the subshell should return spaceless strings in kpatch
usecases.

Ignore the warnings for now.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
This commit is contained in:
Julien Thierry 2020-06-03 10:10:19 +01:00
parent e906db9b81
commit 22e2c1a95c
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#set -x
OBJDIR="$HOME/.kpatch/obj"
# shellcheck disable=SC2046
SCRIPTDIR=$(readlink -f $(dirname $(type -p "$0")))
TEMPDIR=$(mktemp -d)
RESULTSDIR="$TEMPDIR/results"
@ -52,6 +53,7 @@ do
# expect RETCODE to be 3 indicating no change
[[ $RETCODE -eq 3 ]] && continue
# otherwise record error
# shellcheck disable=SC2046
mkdir -p "$RESULTSDIR"/$(dirname "$i") || exit 1
cp "$i" "$RESULTSDIR/$i" || exit 1
case $RETCODE in

View File

@ -40,6 +40,7 @@
shopt -s nullglob
# shellcheck disable=SC2046
SCRIPTDIR=$(readlink -f $(dirname $(type -p "$0")))
ROOTDIR=$(readlink -f "$SCRIPTDIR/../..")
# TODO: option to use system-installed binaries instead