makepkg: revert bash4-ism
Commit 3d67d9b1 introduced a bash4 string manipulation. Revert that
in order retain compatibility with bash-3.2 which is still widely
used.
Signed-off-by: Allan McRae <allan@archlinux.org>
---
This is for the maint branch
scripts/makepkg.sh.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index c6bc738..3bc6019 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -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=$(echo $answer | tr '[:lower:]' '[:upper:]')
if [[ $answer = $(gettext YES) || $answer = $(gettext Y) ]]; then
rm "$SRCDEST"/*
if (( $? )); then
--
1.7.1
|