Keep the -n check for TERM too.

This commit is contained in:
Ewan Mellor
2023-01-01 12:05:17 -08:00
parent 8b77664775
commit b67e7087a4

View File

@ -3,7 +3,7 @@
set -euo pipefail
cols=80
if [ "$TERM" != "dumb" ]
if [ -n "$TERM" ] && [ "$TERM" != "dumb" ]
then
cols=$(tput cols)
fi