makepkg: remove unnecessary tr usage
The use of "tr" only leads to trouble. Remove unnecessary usage of it from within makepkg. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
541c2470b8
commit
a164c8405a
1 changed files with 1 additions and 3 deletions
|
@ -286,11 +286,10 @@ check_buildenv() {
|
||||||
# ? - not found
|
# ? - not found
|
||||||
##
|
##
|
||||||
in_opt_array() {
|
in_opt_array() {
|
||||||
local needle=$(tr '[:upper:]' '[:lower:]' <<< $1); shift
|
local needle=$1; shift
|
||||||
|
|
||||||
local opt
|
local opt
|
||||||
for opt in "$@"; do
|
for opt in "$@"; do
|
||||||
opt=$(tr '[:upper:]' '[:lower:]' <<< $opt)
|
|
||||||
if [[ $opt = $needle ]]; then
|
if [[ $opt = $needle ]]; then
|
||||||
echo 'y' # Enabled
|
echo 'y' # Enabled
|
||||||
return
|
return
|
||||||
|
@ -578,7 +577,6 @@ generate_checksums() {
|
||||||
|
|
||||||
local integ
|
local integ
|
||||||
for integ in ${integlist[@]}; do
|
for integ in ${integlist[@]}; do
|
||||||
integ=$(tr '[:upper:]' '[:lower:]' <<< "$integ")
|
|
||||||
case "$integ" in
|
case "$integ" in
|
||||||
md5|sha1|sha256|sha384|sha512) : ;;
|
md5|sha1|sha256|sha384|sha512) : ;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Add table
Reference in a new issue