summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-03-23 17:40:10 +0100
committerUlrich Müller <ulm@gentoo.org>2023-03-26 13:33:58 +0200
commit98b00bd579efaec32b488c775e30f8c721764988 (patch)
tree0576208355a3f7970de9eba3f1203d27de0854c0 /eclass/unpacker.eclass
parenttoolchain.eclass: Quote argument of ":" command (diff)
downloadgentoo-98b00bd579efaec32b488c775e30f8c721764988.tar.gz
gentoo-98b00bd579efaec32b488c775e30f8c721764988.tar.bz2
gentoo-98b00bd579efaec32b488c775e30f8c721764988.zip
unpacker.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/unpacker.eclass')
-rw-r--r--eclass/unpacker.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 2a0dcf45d76a..a3c388c6b9b7 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -421,7 +421,7 @@ _unpacker_get_decompressor() {
type -P lbzip2 || type -P pbzip2 || type -P bzip2
)}
local bzuncmd=${PORTAGE_BUNZIP2_COMMAND:-${bzcmd} -d}
- : ${UNPACKER_BZ2:=${bzuncmd}}
+ : "${UNPACKER_BZ2:=${bzuncmd}}"
echo "${UNPACKER_BZ2} -c"
;;
*.z|*.gz|*.tgz)
@@ -444,7 +444,7 @@ _unpacker_get_decompressor() {
done
}
- : ${UNPACKER_LZIP:=$(find_lz_unpacker)}
+ : "${UNPACKER_LZIP:=$(find_lz_unpacker)}"
echo "${UNPACKER_LZIP} -dc" ;;
*.zst)
echo "zstd -dc" ;;