Skip to content

Commit c12764b

Browse files
dschogitster
authored andcommitted
filter-branch: use $(($i+1)) instead of $((i+1))
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d674ee4 commit c12764b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-filter-branch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ test $commits -eq 0 && die "Found nothing to rewrite"
339339

340340
i=0
341341
while read commit; do
342-
i=$((i+1))
342+
i=$(($i+1))
343343
printf "$commit ($i/$commits) "
344344

345345
git-read-tree -i -m $commit

0 commit comments

Comments
 (0)