Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 05/15] unpacker.eclass: Use bash substitution instead of tr for lowercase
Date: Sun, 25 Sep 2022 18:24:53
Message-Id: 20220925182317.1559529-6-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/15] unpacker.eclass: Tests, bugfixes and GPKG support by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/unpacker.eclass | 2 +-
4 1 file changed, 1 insertion(+), 1 deletion(-)
5
6 diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
7 index 915a31c86437..482cf141ee1d 100644
8 --- a/eclass/unpacker.eclass
9 +++ b/eclass/unpacker.eclass
10 @@ -389,7 +389,7 @@ _unpacker() {
11 [[ $# -eq 1 ]] || die "Usage: ${FUNCNAME} <file>"
12
13 local a=$1
14 - local m=$(echo "${a}" | tr '[:upper:]' '[:lower:]')
15 + local m=${a,,}
16 a=$(find_unpackable_file "${a}")
17
18 # first figure out the decompression method
19 --
20 2.37.3