mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
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
@ -286,11 +286,10 @@ check_buildenv() {
|
||||
# ? - not found
|
||||
##
|
||||
in_opt_array() {
|
||||
local needle=$(tr '[:upper:]' '[:lower:]' <<< $1); shift
|
||||
local needle=$1; shift
|
||||
|
||||
local opt
|
||||
for opt in "$@"; do
|
||||
opt=$(tr '[:upper:]' '[:lower:]' <<< $opt)
|
||||
if [[ $opt = $needle ]]; then
|
||||
echo 'y' # Enabled
|
||||
return
|
||||
@ -578,7 +577,6 @@ generate_checksums() {
|
||||
|
||||
local integ
|
||||
for integ in ${integlist[@]}; do
|
||||
integ=$(tr '[:upper:]' '[:lower:]' <<< "$integ")
|
||||
case "$integ" in
|
||||
md5|sha1|sha256|sha384|sha512) : ;;
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user