Skip to content

Commit

Permalink
filter-branch: use $(($i+1)) instead of $((i+1))
Browse files Browse the repository at this point in the history
The expression $((i+1)) is not portable at all: even some bash versions
do not grok it. So do not use it.

Noticed by Jonas Fonseca.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Jun 6, 2007
1 parent d674ee4 commit c12764b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-filter-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ test $commits -eq 0 && die "Found nothing to rewrite"

i=0
while read commit; do
i=$((i+1))
i=$(($i+1))
printf "$commit ($i/$commits) "

git-read-tree -i -m $commit
Expand Down

0 comments on commit c12764b

Please sign in to comment.