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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Jun 6, 2007 at 16:24 UTC
c12764b8b7e004f84b1e685b76f2d662bee8e196
1 file changed
+1
-1
git-filter-branch.sh
+1
-1
@@ -339,7 +339,7 @@ test $commits -eq 0 && die "Found nothing to rewrite"
339
340
i=0
341
while read commit; do
342
- i=$((i+1))
342
+ i=$(($i+1))
343
printf "$commit ($i/$commits) "
344
345
git-read-tree -i -m $commit