From b0370b31d3649893d57b1729979b1124a47a6f05 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Tue, 1 Aug 2017 19:48:33 +0200 Subject: ci/deploy.sh: Fix "notify" on dumb terminals Dumb terminals (which do not support colors), like "vt220", make `tput setaf` return with an error code, hence bypassing the actual print. Change-Id: Id838583beb30a810aec478ed80d452c6f3203e0f Signed-off-by: Alexandru Avadanii --- ci/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ci') diff --git a/ci/deploy.sh b/ci/deploy.sh index 3ac7ff1ea..a77dd0f88 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -106,7 +106,7 @@ EOF # BEGIN of colored notification wrapper # notify() { - tput setaf "${2:-1}" + tput setaf "${2:-1}" || true echo -en "${1:-"[WARN] Unsupported opt arg: $3\\n"}" tput sgr0 } -- cgit 1.2.3-korg