From 81c0fa5c3b74568b8f3ccf57f214ccbfc52ae20b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 14 Jul 2009 13:56:21 +0200 Subject: ct: Simplified the progress function a little --- bin/ct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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 )) -- cgit v1.2.3