From: Alexandru Avadanii Date: Tue, 1 Aug 2017 17:48:33 +0000 (+0200) Subject: ci/deploy.sh: Fix "notify" on dumb terminals X-Git-Tag: opnfv-5.0.RC1~155 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F38539%2F1;p=fuel.git 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 --- 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 }