diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-14 13:56:21 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-14 13:56:21 +0200 |
commit | 81c0fa5c3b74568b8f3ccf57f214ccbfc52ae20b (patch) | |
tree | fd2b0d423f67c495a07fd6cc164a36019c42a9da /bin | |
parent | c107e578006274bda11ce75d0dbb5a6dee3618a2 (diff) |
ct: Simplified the progress function a little
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ct | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 )) |