diff options
author | carey.xu <carey.xuhan@huawei.com> | 2015-07-06 16:45:40 +0800 |
---|---|---|
committer | carey.xu <carey.xuhan@huawei.com> | 2015-07-08 10:18:44 +0800 |
commit | 99c363dbd827c430cf2bed2cd27c66be4642bae2 (patch) | |
tree | f6af62c3301d58d8c7d49f2a34ef73c3112309e3 /compass/ci/log.sh | |
parent | ed3731988cdc90066aa4c8e6147f1acbc6622df8 (diff) |
speed up the installation of compass
BGS-83
Change-Id: I0dada0a6c4fc6b9dda9fe586b0371ba543045057
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'compass/ci/log.sh')
-rwxr-xr-x | compass/ci/log.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/compass/ci/log.sh b/compass/ci/log.sh new file mode 100755 index 0000000..f54fdca --- /dev/null +++ b/compass/ci/log.sh @@ -0,0 +1,22 @@ +#!/bin/bash +reset=`tput sgr0` +red=`tput setaf 1` +green=`tput setaf 2` +yellow=`tput setaf 3` + +function log_info() { + echo -e "${green}$*${reset}" +} + +function log_warn() { + echo -e "${yellow}$*${reset}" +} + +function log_error() { + echo -e "${red}$*${reset}" +} + +function log_progress() { + echo -en "${yellow}$*\r${reset}" +} + |