aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-08-01 19:48:33 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-08-01 19:52:49 +0200
commitb0370b31d3649893d57b1729979b1124a47a6f05 (patch)
tree9bad1a073d6a992df54184afa09b3b5baa074ad1 /ci
parent8d7128a62cd2f9b3df1d59bf4aa4fa7a387b1679 (diff)
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 <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/deploy.sh2
1 files changed, 1 insertions, 1 deletions
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
}