Browse Source

Fix progess indicator for long hosts

Georgi Chorbadzhiyski 18 years ago
parent
commit
d18e256184
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      slcheck.sh

+ 5
- 1
slcheck.sh View File

@@ -1,7 +1,7 @@
1 1
 #!/bin/sh
2 2
 # SlackCheck
3 3
 #
4
-# $Id: slcheck.sh,v 1.36 2006/07/10 08:30:58 gf Exp $
4
+# $Id: slcheck.sh,v 1.37 2006/07/10 08:37:05 gf Exp $
5 5
 #
6 6
 # Copyright (c) 2002-2006 Georgi Chorbadzhiyski, Sofia, Bulgaria
7 7
 # All rights reserved.
@@ -147,6 +147,10 @@ generate_upgrade_scripts() {
147 147
 		TOTAL=0
148 148
 		CHECKED=0
149 149
 		FILL=$((12 - $(echo $HOST | wc -c)))
150
+		if [ $FILL -le 0 ]
151
+		then
152
+			FILL=4
153
+		fi
150 154
 		FL="$(yes "_" | head -$FILL | xargs echo | sed -e 's|_| |g')"
151 155
 		# Check if package list exist
152 156
 		if [ -f ${DIR_PKG}/${HOST} ]

Loading…
Cancel
Save