Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-06-20 21:01:32 -0500
committerDan McGee <dan@archlinux.org>2010-06-20 21:01:32 -0500
commit67d71ea932a18d27dbb87f4f364ae9159b4edc96 (patch)
tree9a22c8ea93c530d0e5794ee42523450a4976bec3 /scripts
parent59c47aaf529df02ec1577fe727c3c84d13592666 (diff)
parentc2cf6a14cf44400d0ef249b38d37eb04d3424bf4 (diff)
Merge branch 'maint'
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index c6bc7382..dbc40471 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -265,11 +265,11 @@ check_buildenv() {
# ? - not found
##
in_opt_array() {
- local needle="${1,,}"; shift
+ local needle=$(tr '[:upper:]' '[:lower:]' <<< $1); shift
local opt
for opt in "$@"; do
- opt="${opt,,}"
+ opt=$(tr '[:upper:]' '[:lower:]' <<< $opt)
if [[ $opt = $needle ]]; then
echo 'y' # Enabled
return
@@ -554,7 +554,7 @@ generate_checksums() {
local integ
for integ in ${integlist[@]}; do
- integ="${integ,,}"
+ integ=$(tr '[:upper:]' '[:lower:]' <<< "$integ")
case "$integ" in
md5|sha1|sha256|sha384|sha512) : ;;
*)
@@ -617,7 +617,7 @@ check_checksums() {
fi
if (( $found )) ; then
- local expectedsum="${integrity_sums[$idx],,}"
+ local expectedsum=$(tr '[:upper:]' '[:lower:]' <<< "${integrity_sums[$idx]}")
local realsum="$(openssl dgst -${integ} "$file")"
realsum="${realsum##* }"
if [[ $expectedsum = $realsum ]]; then
@@ -1665,7 +1665,7 @@ if (( CLEANCACHE )); then
echo -n "$(gettext " Are you sure you wish to do this? ")"
echo -n "$(gettext "[y/N]")"
read answer
- answer="${answer^^}"
+ answer=$(tr '[:lower:]' '[:upper:]' <<< "$answer")
if [[ $answer = $(gettext YES) || $answer = $(gettext Y) ]]; then
rm "$SRCDEST"/*
if (( $? )); then