1 |
commit: fc2a9ec8187f7cae970aca7942f41cb3a39648a9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 24 16:26:13 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 27 20:27:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc2a9ec8 |
7 |
|
8 |
unpacker.eclass: Use bash substitution instead of tr for lowercase |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/unpacker.eclass | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass |
16 |
index 915a31c86437..482cf141ee1d 100644 |
17 |
--- a/eclass/unpacker.eclass |
18 |
+++ b/eclass/unpacker.eclass |
19 |
@@ -389,7 +389,7 @@ _unpacker() { |
20 |
[[ $# -eq 1 ]] || die "Usage: ${FUNCNAME} <file>" |
21 |
|
22 |
local a=$1 |
23 |
- local m=$(echo "${a}" | tr '[:upper:]' '[:lower:]') |
24 |
+ local m=${a,,} |
25 |
a=$(find_unpackable_file "${a}") |
26 |
|
27 |
# first figure out the decompression method |