diff options
Diffstat (limited to 'source/a/pkgtools/scripts')
-rw-r--r-- | source/a/pkgtools/scripts/installpkg | 2 | ||||
-rw-r--r-- | source/a/pkgtools/scripts/upgradepkg | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/a/pkgtools/scripts/installpkg b/source/a/pkgtools/scripts/installpkg index 453e391e..2b87bf36 100644 --- a/source/a/pkgtools/scripts/installpkg +++ b/source/a/pkgtools/scripts/installpkg @@ -182,7 +182,7 @@ package_name() { THREADS="$(nproc)" # Set default line length for terse mode: -if which tput 1> /dev/null 2> /dev/null ; then +if tty -s && which tput 1> /dev/null 2> /dev/null ; then TERSELENGTH=$(tput cols) else TERSELENGTH=80 diff --git a/source/a/pkgtools/scripts/upgradepkg b/source/a/pkgtools/scripts/upgradepkg index bb150483..1acae7d6 100644 --- a/source/a/pkgtools/scripts/upgradepkg +++ b/source/a/pkgtools/scripts/upgradepkg @@ -119,7 +119,7 @@ if [ ! -d $INSTLOCKDIR ]; then fi # Set default line length for terse mode: -if which tput 1> /dev/null 2> /dev/null ; then +if tty -s && which tput 1> /dev/null 2> /dev/null ; then TERSELENGTH=$(tput cols) else TERSELENGTH=80 |