From 0314bcdbbab438494fc1355b183e371b3432041e Mon Sep 17 00:00:00 2001 From: Alejandro Escobar Date: Fri, 10 Feb 2017 10:25:43 -0800 Subject: [PATCH] remove hardcoded ansi to tput so that color coding works in multiple platforms including osx. --- hack/make-rules/make-help.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/make-rules/make-help.sh b/hack/make-rules/make-help.sh index 33b1fa868c0..11033dfb596 100755 --- a/hack/make-rules/make-help.sh +++ b/hack/make-rules/make-help.sh @@ -18,8 +18,8 @@ set -o errexit set -o nounset set -o pipefail -red='\E[1;31m' -reset='\E[0m' +readonly red=$(tput setaf 1) +readonly reset=$(tput sgr0) KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../.. ALL_TARGETS=$(make -C "${KUBE_ROOT}" PRINT_HELP=y -rpn | sed -n -e '/^$/ { n ; /^[^ .#][^ ]*:/ { s/:.*$// ; p ; } ; }' | sort)