summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/pkg b/bin/pkg
index 04b62ff..0b41789 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -35,11 +35,12 @@ check_valid () {
}
clear_line () {
- echo -ne "\r"
+ string="\r"
for char in {0..80}; {
- echo -ne " "
+ string+=" "
}
- echo -ne "\r"
+ string+="\r"
+ echo -ne $string
}
# Read local configuration
@@ -137,7 +138,7 @@ progress () {
clear_line
c=$[$currentper/5]
a=$[20-$c]
- say "$desc ["
+ say "${info}$desc${reset} ["
item $c '='
item $a ' '
say "] $currentper% $desc2"