diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-03-23 17:40:07 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-03-26 13:33:56 +0200 |
commit | c5f2eb781a635709acd0d0a11c8255acdde1e068 (patch) | |
tree | 3ae7bb1b72f8f368140380a9adaa3ecea5a70f21 | |
parent | ssl-cert.eclass: Quote argument of ":" command (diff) | |
download | gentoo-c5f2eb781a635709acd0d0a11c8255acdde1e068.tar.gz gentoo-c5f2eb781a635709acd0d0a11c8255acdde1e068.tar.bz2 gentoo-c5f2eb781a635709acd0d0a11c8255acdde1e068.zip |
stardict.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/stardict.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/stardict.eclass b/eclass/stardict.eclass index 1ca6d10d6d78..080c01f92470 100644 --- a/eclass/stardict.eclass +++ b/eclass/stardict.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: stardict.eclass @@ -33,16 +33,16 @@ RESTRICT="strip" # @DEFAULT_UNSET # @DESCRIPTION: # Suffix used for dictionaries. -: ${DICT_SUFFIX:=${PN#stardict-[[:lower:]]*-}} +: "${DICT_SUFFIX:=${PN#stardict-[[:lower:]]*-}}" # @ECLASS_VARIABLE: DICT_P # @PRE_INHERIT # @DEFAULT_UNSET # @DESCRIPTION: # The filestem used for downloading dictionaries from SourceForge. -: ${DICT_P:=stardict-${DICT_PREFIX}${DICT_SUFFIX}-${PV}} +: "${DICT_P:=stardict-${DICT_PREFIX}${DICT_SUFFIX}-${PV}}" -: ${DESCRIPTION:="Another Stardict Dictionary"} +: "${DESCRIPTION:="Another Stardict Dictionary"}" if [[ -n ${FROM_LANG} && -n ${TO_LANG} ]]; then DESCRIPTION="Stardict Dictionary ${FROM_LANG} to ${TO_LANG}" fi |