From b67e7087a423c9eafa18f5a23abc38b511168c11 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Sun, 1 Jan 2023 12:05:17 -0800 Subject: [PATCH] Keep the -n check for TERM too. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 79fd5dc..8a413a9 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -euo pipefail cols=80 -if [ "$TERM" != "dumb" ] +if [ -n "$TERM" ] && [ "$TERM" != "dumb" ] then cols=$(tput cols) fi