From 3ba069311ad74d1ef3716ca488faf29371d60e08 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 1 Nov 2011 09:19:49 +0000 Subject: [PATCH] check for version early --- id-release | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/id-release b/id-release index 331d63a..244633a 100755 --- a/id-release +++ b/id-release @@ -15,6 +15,11 @@ usage () { } ###################################################################### +case $1 in + [0-9]* ) version=$1 ;; + * ) usage ;; +esac + if [ -e "pom.xml" ]; then java=true else @@ -35,11 +40,6 @@ else package=`perl -ne 's/\s*$//; print if s/^NAME=//' IDMETA` fi -case $1 in - [0-9]* ) version=$1 ;; - * ) usage ;; -esac - # configure new version perl -i.bak -npe "s,VERSION=.*,VERSION=$version," IDMETA -- 1.7.10.4