From: Junio C Hamano Date: Tue, 26 Jan 2010 01:15:23 +0000 (-0800) Subject: Avoid octal increment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=389f7f1bd1657438232cb744a48b049169304be5;p=thirdparty%2Fgit.git Avoid octal increment --- diff --git a/cook.sh b/cook.sh index dabee4b38c..3156c063de 100755 --- a/cook.sh +++ b/cook.sh @@ -223,11 +223,15 @@ eval $(sed -ne '/^Subject: /{ }' Meta/whats-cooking.txt) if test "$monthname $year" = "$lastmon $lastyear" then + while case "$lastissue" in 0?*) ;; *) break ;; esac + do + lastissue=${lastissue#0} + done if test "$incremental" = no then issue=$(( $lastissue + 1 )) else - issue=$(( lastissue + 0 )) + issue=$(( $lastissue + 0 )) fi else issue=1