mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
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 ```
This commit is contained in:
commit
899ddbcfc6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user