From 93ca81cba44d81e979c70c2b4f61c83f7f2e8639 Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Tue, 11 Apr 2023 15:22:46 +0200 Subject: [PATCH] Print grep version --- get-build-version-params.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/get-build-version-params.sh b/get-build-version-params.sh index 22384fed..3efc652c 100755 --- a/get-build-version-params.sh +++ b/get-build-version-params.sh @@ -6,10 +6,11 @@ if (( sourced == 0 )); then echo "This script must be invoked using: source $0 $*" exit 1 fi - +grep --version # get the target release version and type export BUILD_VERSION=$(cat $SCDIR/version/RELEASE_VERSION) -grep --version +echo "BUILD_VERSION: $BUILD_VERSION" + IS_SNAPSHOT=$(echo $BUILD_VERSION | grep -E "^.*-SNAPSHOT$") IS_MILESTONE=$(echo $BUILD_VERSION | grep -E "^.*-(M|RC)[0-9]+$") IS_GA=$(echo $BUILD_VERSION | grep -E "^.*\.[0-9]+$") @@ -25,7 +26,6 @@ else exit 1 fi -echo "BUILD_VERSION: $BUILD_VERSION" echo "BUILD_VERSION_TYPE: $BUILD_VERSION_TYPE" # get the current version from pom.xml