mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Use colorize
in require_clang
and require_java
This commit is contained in:
parent
b55830fb01
commit
cac8fd7f60
1 changed files with 4 additions and 4 deletions
|
@ -986,9 +986,9 @@ require_clang() {
|
||||||
local clang="$(command -v "$CC" || command -v "clang" || true)"
|
local clang="$(command -v "$CC" || command -v "clang" || true)"
|
||||||
|
|
||||||
if [ -z "$clang" ]; then
|
if [ -z "$clang" ]; then
|
||||||
local esc=$'\033'
|
|
||||||
{ echo
|
{ echo
|
||||||
echo "${esc}[1mERROR${esc}[0m: This package must be compiled with clang, but python-build couldn't"
|
colorize 1 "ERROR"
|
||||||
|
echo ": This package must be compiled with clang, but python-build couldn't"
|
||||||
echo "find a suitable \`clang\` executable on your system. Please install clang"
|
echo "find a suitable \`clang\` executable on your system. Please install clang"
|
||||||
echo "and try again."
|
echo "and try again."
|
||||||
echo
|
echo
|
||||||
|
@ -1003,9 +1003,9 @@ require_java() {
|
||||||
local java="$(command -v java || true)"
|
local java="$(command -v java || true)"
|
||||||
|
|
||||||
if [ -z "$java" ]; then
|
if [ -z "$java" ]; then
|
||||||
local esc=$'\033'
|
|
||||||
{ echo
|
{ echo
|
||||||
echo "${esc}[1mERROR${esc}[0m: This package must be installed with java, but python-build couldn't"
|
colorize 1 "ERROR"
|
||||||
|
echo ": This package must be installed with java, but python-build couldn't"
|
||||||
echo "find a suitable \`java\` executable on your system. Please install Java"
|
echo "find a suitable \`java\` executable on your system. Please install Java"
|
||||||
echo "and try again."
|
echo "and try again."
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue