From 73a6a7878429606d4196e396b362b7c8a88dfd29 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Mon, 14 Nov 2016 17:02:59 +0100 Subject: [PATCH] fix octal numbers in vim-update --- vim-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim-update.sh b/vim-update.sh index 66fc8dd0..031a1766 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -26,7 +26,7 @@ pushd vim-upstream LASTTAG=$(git describe --tags $(git rev-list --tags --max-count=1)) # vim upstream tags have the form v7.4.123. Remove the 'v' and get major release and patchlevel: UPSTREAMMAJOR=$(echo $LASTTAG | sed -e 's/v\([0-9]*\.[0-9]*\).*/\1/') -LASTPL=`echo $LASTTAG| sed -e 's/.*\.//'` +LASTPL=`echo $LASTTAG| sed -e 's/.*\.//;s/^0*//'` LASTPLFILLED=`printf "%03d" $LASTPL` if [ "$ORIGPLFILLED" == "$LASTPLFILLED" ]; then echo "No new patchlevel available"