Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   makepkg: revert bash4-ism (http://www.linux-archive.org/archlinux-pacman-development/388449-makepkg-revert-bash4-ism.html)

Allan McRae 06-20-2010 01:30 PM

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


All times are GMT. The time now is 07:16 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.