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:
Allan McRae 2011-03-31 11:12:58 +10:00 committed by Dan McGee
parent 541c2470b8
commit a164c8405a

View file

@ -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) : ;;
*) *)