From 2d9fb5d23251ec0854c94649b345c4ae80ccc264 Mon Sep 17 00:00:00 2001 From: Dmitry Fleytman <dmitry@daynix.com> Date: Fri, 29 Nov 2013 18:07:37 +0200 Subject: [PATCH] release-ec2: use tput for message coloring tput is more portable than raw colors specification Signed-off-by: Dmitry Fleytman <dmitry@daynix.com> Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com> --- scripts/release-ec2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release-ec2.sh b/scripts/release-ec2.sh index cef0f3533..e7dacc0c8 100755 --- a/scripts/release-ec2.sh +++ b/scripts/release-ec2.sh @@ -116,14 +116,14 @@ amend_rstatus() { } handle_error() { - echo "\033[31m >>> [`timestamp`] ERROR: $* \033[0m" + echo $(tput setaf 1)">>> [`timestamp`] ERROR: $*"$(tput sgr0) echo amend_rstatus ERROR: $* amend_rstatus Release FAILED. } echo_progress() { - echo "\033[33m >>> $* \033[0m" + echo $(tput setaf 3)">>> $*"$(tput sgr0) } get_json_value() { -- GitLab