diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-03-23 17:39:33 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-03-26 13:33:34 +0200 |
commit | 879838e37b656efe69eca6b07a5ac16e8dcc0342 (patch) | |
tree | f7d721f3ec48d01ff055cd682fe815896c40fccf | |
parent | fortran-2.eclass: Quote argument of ":" command (diff) | |
download | gentoo-879838e37b656efe69eca6b07a5ac16e8dcc0342.tar.gz gentoo-879838e37b656efe69eca6b07a5ac16e8dcc0342.tar.bz2 gentoo-879838e37b656efe69eca6b07a5ac16e8dcc0342.zip |
git-r3.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/git-r3.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index 5c7dc29627cb..32f1129f86bc 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -62,7 +62,7 @@ fi # unavailable calls like 'git describe' will not reference prior tags. # No purging of old references is done. This mode is intended mostly for # embedded systems with limited disk space. -: ${EGIT_CLONE_TYPE:=single} +: "${EGIT_CLONE_TYPE:=single}" # @ECLASS_VARIABLE: EGIT_MIN_CLONE_TYPE # @DESCRIPTION: @@ -79,7 +79,7 @@ fi # or a similar remote is used that does not support shallow clones # and fetching tags along with commits. Please use sparingly, and to fix # fatal errors rather than 'non-pretty versions'. -: ${EGIT_MIN_CLONE_TYPE:=shallow} +: "${EGIT_MIN_CLONE_TYPE:=shallow}" # @ECLASS_VARIABLE: EGIT3_STORE_DIR # @USER_VARIABLE @@ -317,7 +317,7 @@ _git-r3_set_gitdir() { repo_name=${repo_name//\//_} local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}} - : ${EGIT3_STORE_DIR:=${distdir}/git3-src} + : "${EGIT3_STORE_DIR:=${distdir}/git3-src}" GIT_DIR=${EGIT3_STORE_DIR}/${repo_name} |