Fix tg export --quilt --numbered w/ > 8 patches
commitfbab4d37945a6ea7cf3f23cf3f01f3fef0216078
authorJon Ringle <jon@ringle.org>
Wed, 16 Sep 2009 15:39:24 +0000 (16 11:39 -0400)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 16 Sep 2009 15:58:24 +0000 (16 17:58 +0200)
treec40163e2acc6beb6301f1b93105b6288e7cda9b3
parentc170d1920993fdebda397668cc1a6a8086fe1624
Fix tg export --quilt --numbered w/ > 8 patches

Creating a quilt patch series with more than 8 patches with:
tg export --quilt --numbered patchdir

Causes the following error to be produced:
eval: 1: arithmetic expression: expecting EOF: "0008 + 1"

This is due to the leading 0 and the $(()) evaluates as octal rather
than decimal.

Add the leading zeros only to the filename, not the number itself.

Signed-off-by: Jon Ringle <jon@ringle.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
tg-export.sh