mirror of
https://github.com/dynup/kpatch
synced 2025-01-02 18:52:02 +00:00
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:
parent
e906db9b81
commit
22e2c1a95c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user