From c10be63473c2cff67b5da4c2f17c8d064c1071ed Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Thu, 28 Jun 2012 12:34:10 -0700 Subject: [PATCH] Revert "Removing a bashism from git-effort" This reverts commit cb6c34bc2696ab8dca77cb8b281bf96d20b6fa68. --- bin/git-effort | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/git-effort b/bin/git-effort index d8ce91d..e5775f3 100755 --- a/bin/git-effort +++ b/bin/git-effort @@ -73,9 +73,8 @@ effort() { len=${#file} dot="." f_dot=$file - i=0 ; while test $i -lt 45-$len ; do + for ((i=0; i < 45-$len ;i++)); do f_dot=$f_dot$dot - i=$(($i+1)) done printf " \033[${color}m%s %-10d" $f_dot $commits @@ -130,4 +129,4 @@ heading effort $files | tee $tmp && sort_effort echo -show_cursor +show_cursor \ No newline at end of file