diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-03-23 17:39:44 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-03-26 13:33:41 +0200 |
commit | 74ffef5dced36179a6cda6861065297b7abf3d8c (patch) | |
tree | 855e079dcdbeb21fcc9ae6c9512d09d72bf23f4d | |
parent | linux-info.eclass: Quote argument of ":" command (diff) | |
download | gentoo-74ffef5dced36179a6cda6861065297b7abf3d8c.tar.gz gentoo-74ffef5dced36179a6cda6861065297b7abf3d8c.tar.bz2 gentoo-74ffef5dced36179a6cda6861065297b7abf3d8c.zip |
linux-mod.eclass: Quote argument of ":" command
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | eclass/linux-mod.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index 98b22dcb9fc6..e993ac37da0d 100644 --- a/eclass/linux-mod.eclass +++ b/eclass/linux-mod.eclass @@ -38,7 +38,7 @@ # @DESCRIPTION: # A string containing the directory of the target kernel sources. The default value is # "/usr/src/linux" -: ${KERNEL_DIR:=/usr/src/linux} +: "${KERNEL_DIR:=/usr/src/linux}" # @ECLASS_VARIABLE: ECONF_PARAMS # @DEFAULT_UNSET @@ -54,7 +54,7 @@ # @ECLASS_VARIABLE: BUILD_TARGETS # @DESCRIPTION: # It's a string with the build targets to pass to make. The default value is "clean module" -: ${BUILD_TARGETS:=clean module} +: "${BUILD_TARGETS:=clean module}" # @ECLASS_VARIABLE: MODULE_NAMES # @DEFAULT_UNSET @@ -177,7 +177,7 @@ RDEPEND=" ) ${MODULES_OPTIONAL_USE:+)}" DEPEND="${RDEPEND} - ${MODULES_OPTIONAL_USE}${MODULES_OPTIONAL_USE:+? (} + ${MODULES_OPTIONAL_USE}${MODULES_OPTIONAL_USE:+? (} kernel_linux? ( virtual/linux-sources virtual/libelf ) ${MODULES_OPTIONAL_USE:+)}" |