From 349496ddcad239e46e32c19b194a8346043d286b Mon Sep 17 00:00:00 2001 From: "Frank W. Bergmann" Date: Sun, 18 Jun 2017 13:23:37 +0200 Subject: [PATCH] remove colored output at least for TERMs starting with "vt" --- acme.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/acme.sh b/acme.sh index 1ddec824..c4e5bde7 100755 --- a/acme.sh +++ b/acme.sh @@ -102,6 +102,10 @@ __INTERACTIVE="" if [ -t 1 ]; then __INTERACTIVE="1" fi +if [[ "$TERM" =~ "^vt" ]] +then + unset __INTERACTIVE +fi __green() { if [ "$__INTERACTIVE" ]; then