diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-09-24 18:26:13 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-09-27 22:27:59 +0200 |
commit | fc2a9ec8187f7cae970aca7942f41cb3a39648a9 (patch) | |
tree | 3b871b2e93c2cedf6c57274fdd199e9581949db3 /eclass | |
parent | unpacker.eclass: Remove support for EAPI 5 (diff) | |
download | gentoo-fc2a9ec8187f7cae970aca7942f41cb3a39648a9.tar.gz gentoo-fc2a9ec8187f7cae970aca7942f41cb3a39648a9.tar.bz2 gentoo-fc2a9ec8187f7cae970aca7942f41cb3a39648a9.zip |
unpacker.eclass: Use bash substitution instead of tr for lowercase
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/unpacker.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index 915a31c86437..482cf141ee1d 100644 --- a/eclass/unpacker.eclass +++ b/eclass/unpacker.eclass @@ -389,7 +389,7 @@ _unpacker() { [[ $# -eq 1 ]] || die "Usage: ${FUNCNAME} <file>" local a=$1 - local m=$(echo "${a}" | tr '[:upper:]' '[:lower:]') + local m=${a,,} a=$(find_unpackable_file "${a}") # first figure out the decompression method |