From 7f7cdba90cd2762d74f217d369a2e982da8659cf Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 15 Mar 2014 17:56:51 +0000 Subject: [PATCH] no version change, just added wrapper around tput cols so only use it if in terminal --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index c3a1dba..5a6da78 100755 --- a/inxi +++ b/inxi @@ -491,7 +491,7 @@ if [[ -n $( type -p tput ) ]];then COLUMNS=$(tput cols) fi # double check, just in case it's missing functionality or whatever -if [[ -z $( grep -E '^[0-9]+$' <<< $COLUMNS ) ]];then +if [[ -z ${COLUMNS##[0-9]*} ]];then LINES=100 COLUMNS=80 fi