diff options
| author | Ulrich Müller <ulm@gentoo.org> | 2023-03-23 17:39:57 +0100 |
|---|---|---|
| committer | Ulrich Müller <ulm@gentoo.org> | 2023-03-26 13:33:49 +0200 |
| commit | 87cbd763a60e4d16553a4a68eaafdb26beac7e42 (patch) | |
| tree | 4a1194e48cdbb7a35e07b3c68889a2105373d20e /eclass/php-pear-r2.eclass | |
| parent | a9a5c1a36892063086c57326be14958a3e39c9ff (diff) | |
| download | gentoo-87cbd763a60e4d16553a4a68eaafdb26beac7e42.tar.gz gentoo-87cbd763a60e4d16553a4a68eaafdb26beac7e42.tar.bz2 gentoo-87cbd763a60e4d16553a4a68eaafdb26beac7e42.zip | |
php-pear-r2.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/php-pear-r2.eclass')
| -rw-r--r-- | eclass/php-pear-r2.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/php-pear-r2.eclass b/eclass/php-pear-r2.eclass index 29bcf1e6fce8..9882c7dcc700 100644 --- a/eclass/php-pear-r2.eclass +++ b/eclass/php-pear-r2.eclass @@ -29,12 +29,12 @@ RDEPEND=">=dev-php/pear-1.8.1" # @DESCRIPTION: # Set this if the PEAR package name differs from ${PN/PEAR-/} # (generally shouldn't be the case). -: ${PHP_PEAR_PKG_NAME:=${PN/PEAR-/}} +: "${PHP_PEAR_PKG_NAME:=${PN/PEAR-/}}" # @ECLASS_VARIABLE: PEAR_PV # @DESCRIPTION: # Set in ebuild if the ${PV} breaks SRC_URI for alpha/beta/rc versions -: ${PEAR_PV:=${PV}} +: "${PEAR_PV:=${PV}}" # @ECLASS_VARIABLE: PEAR-P # @INTERNAL @@ -46,7 +46,7 @@ PEAR_P="${PHP_PEAR_PKG_NAME}-${PEAR_PV}" # @DESCRIPTION: # Set in ebuild to the domain name of the channel if not pear.php.net # When the domain is not pear.php.net, setting the SRC_URI is required -: ${PHP_PEAR_DOMAIN:=pear.php.net} +: "${PHP_PEAR_DOMAIN:=pear.php.net}" # @ECLASS_VARIABLE: PHP_PEAR_CHANNEL # @DEFAULT_UNSET @@ -60,7 +60,7 @@ if [[ "${PHP_PEAR_DOMAIN}" == "pear.php.net" ]] ; then SRC_URI="https://pear.php.net/get/${PEAR_P}.tgz" fi -: ${HOMEPAGE:=https://${PHP_PEAR_DOMAIN}/package/${PHP_PEAR_PKG_NAME}} +: "${HOMEPAGE:=https://${PHP_PEAR_DOMAIN}/package/${PHP_PEAR_PKG_NAME}}" S="${WORKDIR}/${PEAR_P}" |
