This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <u...@gentoo.org> --- eclass/unpacker.eclass | 4 ++-- 1 file 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" ;; -- 2.40.0