Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=66404bf44996636ef913c4155779fe72845a6b0b

commit 66404bf44996636ef913c4155779fe72845a6b0b
Author: Michel Hermier <[email protected]>
Date:   Mon Jan 20 10:25:07 2014 +0100

makepkg: Detect /usr/bin/tput before invoking it to determine terminal colors.

diff --git a/scripts/makepkg b/scripts/makepkg
index d6c6596..13223b7 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -1125,7 +1125,7 @@ install_pkg()
makepkg_init

if [ "$USE_COLOR" = "Y" -o "$USE_COLOR" = "y" ]; then
-       if [ "$(/usr/bin/tput colors)" -lt 3 ]; then
+       if [ ! -e /usr/bin/tput -o "$(/usr/bin/tput colors)" -lt 3 ]; then
USE_COLOR="n"
warning "Disabling color as the terminal does not support it."
fi
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to