From 85332abf4792ac62a53e6dbd4c601f4dc39c25e8 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 7 Oct 2018 18:13:09 +0100 Subject: [PATCH] Make set-version update versions correctly --- builder/src/main/resources/README-template.md | 2 +- set-version.sh | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/builder/src/main/resources/README-template.md b/builder/src/main/resources/README-template.md index 12f1901..fe166d4 100644 --- a/builder/src/main/resources/README-template.md +++ b/builder/src/main/resources/README-template.md @@ -49,7 +49,7 @@ The simplest way to use the ruleset is with the maven-tile: true - net.kemitix.checkstyle:tile:RELEASE + net.kemitix.checkstyle:tile:DEV-SNAPSHOT diff --git a/set-version.sh b/set-version.sh index 222a1af..1c73f47 100755 --- a/set-version.sh +++ b/set-version.sh @@ -1,15 +1,15 @@ #!/usr/bin/env bash -if test $# != 2 +if test $# != 1 then - echo "current and next version missing" + echo "Next version missing" exit fi -CURRENT=$1 -NEXT=$2 +NEXT=$1 -echo Updating version from $CURRENT to $NEXT - -mvn versions:set -DnewVersion=$NEXT -perl -p -i -e "s,$CURRENT