summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-03-23 17:39:23 +0100
committerUlrich Müller <ulm@gentoo.org>2023-03-26 13:33:28 +0200
commit9cfc13e258d0639dcb67c7cf3c8bad88866bd639 (patch)
tree3446f054552f448437c54513a827e2748df12a5d /eclass/cdrom.eclass
parentcargo.eclass: Quote argument of ":" command (diff)
downloadgentoo-9cfc13e258d0639dcb67c7cf3c8bad88866bd639.tar.gz
gentoo-9cfc13e258d0639dcb67c7cf3c8bad88866bd639.tar.bz2
gentoo-9cfc13e258d0639dcb67c7cf3c8bad88866bd639.zip
cdrom.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/cdrom.eclass')
-rw-r--r--eclass/cdrom.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass
index 81539e8560ce..4e56db951196 100644
--- a/eclass/cdrom.eclass
+++ b/eclass/cdrom.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: cdrom.eclass
@@ -200,7 +200,7 @@ cdrom_load_next_cd() {
while true ; do
local i cdset
- : CD_ROOT_${CDROM_CURRENT_CD}
+ : "CD_ROOT_${CDROM_CURRENT_CD}"
export CDROM_ROOT=${CD_ROOT:-${!_}}
local var="CDROM_CHECK_${CDROM_CURRENT_CD}"
IFS=: read -r -a cdset -d "" <<< "${!var}"