Removing a bashism from git-effort

This commit is contained in:
Jesús Espino 2012-06-28 21:15:34 +02:00
parent c2c50d4659
commit cb6c34bc26

View file

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