summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-03-23 17:39:47 +0100
committerUlrich Müller <ulm@gentoo.org>2023-03-26 13:33:43 +0200
commita30cd50e6d2ee61dd4d299aec50b77cc383ac61d (patch)
treeb29c8cc76ea49601dc5c2fa84fe32ac21b1179f4 /eclass
parentmate.eclass: Quote argument of ":" command (diff)
downloadgentoo-a30cd50e6d2ee61dd4d299aec50b77cc383ac61d.tar.gz
gentoo-a30cd50e6d2ee61dd4d299aec50b77cc383ac61d.tar.bz2
gentoo-a30cd50e6d2ee61dd4d299aec50b77cc383ac61d.zip
mercurial.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/mercurial.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/mercurial.eclass b/eclass/mercurial.eclass
index 776ed2d9a1f0..27fb525bcbd6 100644
--- a/eclass/mercurial.eclass
+++ b/eclass/mercurial.eclass
@@ -45,7 +45,7 @@ BDEPEND="dev-vcs/mercurial"
#
# EHG_REVISION is passed as a value for --updaterev parameter, so it can be more
# than just a revision, please consult `hg help revisions' for more details.
-: ${EHG_REVISION:="default"}
+: "${EHG_REVISION:="default"}"
# @ECLASS_VARIABLE: EHG_STORE_DIR
# @USER_VARIABLE
@@ -70,7 +70,7 @@ BDEPEND="dev-vcs/mercurial"
# @ECLASS_VARIABLE: EHG_QUIET
# @DESCRIPTION:
# Suppress some extra noise from mercurial, set it to 'ON' to be quiet.
-: ${EHG_QUIET:="OFF"}
+: "${EHG_QUIET:="OFF"}"
[[ "${EHG_QUIET}" == "ON" ]] && EHG_QUIET_CMD_OPT="--quiet"
# @ECLASS_VARIABLE: EHG_CONFIG