From a30cd50e6d2ee61dd4d299aec50b77cc383ac61d Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Thu, 23 Mar 2023 17:39:47 +0100 Subject: mercurial.eclass: Quote argument of ":" command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller --- eclass/mercurial.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eclass/mercurial.eclass') 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 -- cgit v1.2.3-65-gdbad