diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-03-23 17:39:43 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-03-26 13:33:41 +0200 |
commit | fdf1a006e5d442c709fccf67082de9129ba2b077 (patch) | |
tree | 07f9fa47db4f7d621e98f195f78e528df16d27e6 /eclass/linux-info.eclass | |
parent | libretro-core.eclass: Quote argument of ":" command (diff) | |
download | gentoo-fdf1a006e5d442c709fccf67082de9129ba2b077.tar.gz gentoo-fdf1a006e5d442c709fccf67082de9129ba2b077.tar.bz2 gentoo-fdf1a006e5d442c709fccf67082de9129ba2b077.zip |
linux-info.eclass: Quote argument of ":" command
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r-- | eclass/linux-info.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index ce04a0dc66a7..66cf77f1dd81 100644 --- a/eclass/linux-info.eclass +++ b/eclass/linux-info.eclass @@ -45,7 +45,7 @@ _LINUX_INFO_ECLASS=1 # @DESCRIPTION: # Do not error out in check_extra_config if CONFIG settings are not met. # This is a user flag and should under _no circumstances_ be set in the ebuild. -: ${CHECKCONFIG_DONOTHING:=""} +: "${CHECKCONFIG_DONOTHING:=""}" # @ECLASS_VARIABLE: KERNEL_DIR # @DESCRIPTION: @@ -105,7 +105,7 @@ KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}" # the following names, in order: GNUmakefile, makefile and Makefile. Set this variable to the # proper Makefile name or the eclass will search in this order for it. # See https://www.gnu.org/software/make/manual/make.html -: ${KERNEL_MAKEFILE:=""} +: "${KERNEL_MAKEFILE:=""}" # @ECLASS_VARIABLE: KV_FULL # @OUTPUT_VARIABLE @@ -156,7 +156,7 @@ KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}" # Do not check for kernel sources or a running kernel version. # Main use-case is for chroots. # This is a user flag and should under _no circumstances_ be set in the ebuild. -: ${SKIP_KERNEL_CHECK:=""} +: "${SKIP_KERNEL_CHECK:=""}" # And to ensure all the weirdness with crosscompile inherit toolchain-funcs @@ -679,7 +679,7 @@ get_running_version() { KV_MINOR=$(ver_cut 2 ${kv_full}) KV_PATCH=$(ver_cut 3 ${kv_full}) KV_EXTRA="${KV_FULL#${KV_MAJOR}.${KV_MINOR}${KV_PATCH:+.${KV_PATCH}}}" - : ${KV_PATCH:=0} + : "${KV_PATCH:=0}" return 0 } |