From cac8fd7f604b34cef20a64ddfafe335e0533cd80 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Fri, 28 Mar 2014 21:56:42 +0900 Subject: [PATCH] Use `colorize` in `require_clang` and `require_java` --- plugins/python-build/bin/python-build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index e67ab387..89998c00 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -986,9 +986,9 @@ require_clang() { local clang="$(command -v "$CC" || command -v "clang" || true)" if [ -z "$clang" ]; then - local esc=$'\033' { 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 "and try again." echo @@ -1003,9 +1003,9 @@ require_java() { local java="$(command -v java || true)" if [ -z "$java" ]; then - local esc=$'\033' { 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 "and try again." echo