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