diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2018-02-08 14:22:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2018-02-08 14:22:45 +0000 |
commit | 852dcf26c335528807eba33a3a9c45d62a9dcbc0 (patch) | |
tree | 1a2fff5bcd82db9a5cfab3a1489fe5b46128e273 /meta-agl-bsp/meta-rcar-gen3/scripts | |
parent | 7c0e34bad099e08c42bc9045db4c7e34d62ab402 (diff) | |
parent | 04dd9605fce7cc32ba807a7c07759b90b0d883f0 (diff) |
Merge "setup_mm_packages.sh: handle weird terminals"
Diffstat (limited to 'meta-agl-bsp/meta-rcar-gen3/scripts')
-rw-r--r-- | meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh b/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh index dddb3379c..587569f9e 100644 --- a/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh +++ b/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh @@ -15,10 +15,14 @@ function color { [[ $stdout_in_terminal == 0 ]] && return for k in $*; do case $k in - bold) tput bold 2>/dev/null;; - none) tput sgr0 2>/dev/null;; - *) tput setaf $k 2>/dev/null;; + bold) tput bold;; + none) tput sgr0;; + *) tput setaf $k;; esac + if [[ $? != 0 ]]; then + echo "tput: terminal doesn't support color settings, continuing" >&2 + true + fi done } color_green=$(color bold 2) |