Revert "Removing a bashism from git-effort"

This reverts commit cb6c34bc26.
This commit is contained in:
TJ Holowaychuk 2012-06-28 12:34:10 -07:00
parent cf474ecb7a
commit c10be63473

View file

@ -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