aboutsummaryrefslogtreecommitdiff
path: root/slackupgrade
diff options
context:
space:
mode:
Diffstat (limited to 'slackupgrade')
-rw-r--r--slackupgrade5
1 files changed, 3 insertions, 2 deletions
diff --git a/slackupgrade b/slackupgrade
index e4335a0..9be3e98 100644
--- a/slackupgrade
+++ b/slackupgrade
@@ -385,3 +385,4 @@ function download_all() {
info "downloading packages"
- if [ ${COLUMNS:-0} -lt 10 ]; then
+ cols=$(tput cols 2>/dev/null || stty size 2>/dev/null | cut -d' ' -f2)
+ if [ ${cols:-0} -lt 10 ]; then
progressbar=0
@@ -390,3 +391,3 @@ function download_all() {
total=$(wc -l candidates | cut -d ' ' -f 1)
- width=$(( $COLUMNS - 7 ))
+ width=$(( $cols - 7 ))
fi

Return to:

Send suggestions and report system problems to the System administrator.