summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-14 13:56:21 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-14 13:56:21 +0200
commit81c0fa5c3b74568b8f3ccf57f214ccbfc52ae20b (patch)
treefd2b0d423f67c495a07fd6cc164a36019c42a9da /bin
parentc107e578006274bda11ce75d0dbb5a6dee3618a2 (diff)
ct: Simplified the progress function a little
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ct4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ct b/bin/ct
index 588f80d..ff727f9 100755
--- a/bin/ct
+++ b/bin/ct
@@ -244,8 +244,8 @@ function progress {
typeset -i currentper=$(( (current*100)/max ))
typeset item j c a
function item {
- for j in {0..$1}; {
- (( j > 0 )) && output+=$2
+ repeat $1; {
+ output+=$2
}
}
c=$(( currentper/5 ))