diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-03-23 17:39:42 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-03-26 13:33:40 +0200 |
commit | 695e43d5ff77d5da86a49e46b6178a78ab142e84 (patch) | |
tree | 91aa4b6add0b839c8c960b496d931c88b6ea07e6 /eclass | |
parent | kernel-2.eclass: Quote argument of ":" command (diff) | |
download | gentoo-695e43d5ff77d5da86a49e46b6178a78ab142e84.tar.gz gentoo-695e43d5ff77d5da86a49e46b6178a78ab142e84.tar.bz2 gentoo-695e43d5ff77d5da86a49e46b6178a78ab142e84.zip |
libretro-core.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')
-rw-r--r-- | eclass/libretro-core.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/libretro-core.eclass b/eclass/libretro-core.eclass index 55d7e9f11513..906526e32436 100644 --- a/eclass/libretro-core.eclass +++ b/eclass/libretro-core.eclass @@ -1,4 +1,4 @@ -# Copyright 2018-2022 Gentoo Authors +# Copyright 2018-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: libretro-core.eclass @@ -69,17 +69,17 @@ fi # @DESCRIPTION: # Contains the real repo name of the core formatted as "repouser/reponame". # Needs to be set before inherit. Otherwise defaults to "libretro/${PN}" -: ${LIBRETRO_REPO_NAME:="libretro/libretro-${LIBRETRO_CORE_NAME}"} +: "${LIBRETRO_REPO_NAME:="libretro/libretro-${LIBRETRO_CORE_NAME}"}" -: ${HOMEPAGE:="https://github.com/${LIBRETRO_REPO_NAME}"} +: "${HOMEPAGE:="https://github.com/${LIBRETRO_REPO_NAME}"}" if [[ ${PV} == *9999 ]]; then - : ${EGIT_REPO_URI:="https://github.com/${LIBRETRO_REPO_NAME}.git"} + : "${EGIT_REPO_URI:="https://github.com/${LIBRETRO_REPO_NAME}.git"}" inherit git-r3 else [[ -z "${LIBRETRO_COMMIT_SHA}" ]] && die "LIBRETRO_COMMIT_SHA must be set before inherit." S="${WORKDIR}/${LIBRETRO_REPO_NAME##*/}-${LIBRETRO_COMMIT_SHA}" - : ${SRC_URI:="https://github.com/${LIBRETRO_REPO_NAME}/archive/${LIBRETRO_COMMIT_SHA}.tar.gz -> ${P}.tar.gz"} + : "${SRC_URI:="https://github.com/${LIBRETRO_REPO_NAME}/archive/${LIBRETRO_COMMIT_SHA}.tar.gz -> ${P}.tar.gz"}" fi inherit flag-o-matic toolchain-funcs |