提交 95296bb0 编写于 作者: F Frederic Crozat

also handle missing tput in upgrade script.

上级 884a8795
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
ncolors=$(tput colors)
tput=$(which tput)
if [ -n "$tput" ]; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册