Commit 899ddbcf authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #41259 from alejandroEsc/ae/make_help/ansi

Automatic merge from submit-queue (batch tested with PRs 41259, 41260) remove hardcoded ansi color coding for `make help` to tput so that color coding works in multiple platforms including osx. **What this PR does / why we need it**: should try not to use hardcoded ansi escape characters. **Release note**: ```NONE ```
parents a6952bc9 0314bcdb
...@@ -18,8 +18,8 @@ set -o errexit ...@@ -18,8 +18,8 @@ set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail
red='\E[1;31m' readonly red=$(tput setaf 1)
reset='\E[0m' readonly reset=$(tput sgr0)
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../.. KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
ALL_TARGETS=$(make -C "${KUBE_ROOT}" PRINT_HELP=y -rpn | sed -n -e '/^$/ { n ; /^[^ .#][^ ]*:/ { s/:.*$// ; p ; } ; }' | sort) ALL_TARGETS=$(make -C "${KUBE_ROOT}" PRINT_HELP=y -rpn | sed -n -e '/^$/ { n ; /^[^ .#][^ ]*:/ { s/:.*$// ; p ; } ; }' | sort)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment