commit d73422c4b52645ba4ed5fb94df94019e5027f902
parent 91e8054695052d4a011579394515063c354b9794
Author: Vincent Demeester <vincent@sbr.pm>
Date: Mon, 15 Jun 2020 10:28:05 +0200
hack/system: fix tput in non tty env
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hack/system b/hack/system
@@ -10,8 +10,8 @@ fi
function error() {
local red
local reset
- red="$(tput setaf 1)"
- reset="$(tput sgr0)"
+ red="$(tput -Txterm setaf 1)"
+ reset="$(tput -Txterm sgr0)"
printf "%s%s%s\n" "$red" "$*" "$reset"
exit 1