Accept a VERSION parameter, default to SNAPSHOT

This commit is contained in:
ghubstan 2022-03-28 11:05:13 -03:00
parent 365ed4cc42
commit 639d3994ca
No known key found for this signature in database
GPG Key ID: E35592D6800A861E
2 changed files with 12 additions and 2 deletions

View File

@ -1,6 +1,11 @@
#! /bin/bash #! /bin/bash
export BISQ_RELEASE_NAME="bisq-cli-release" VERSION="$1"
if [[ -z "$VERSION" ]]; then
VERSION="SNAPSHOT"
fi
export BISQ_RELEASE_NAME="bisq-cli-$VERSION"
export BISQ_RELEASE_ZIP_NAME="$BISQ_RELEASE_NAME.zip" export BISQ_RELEASE_ZIP_NAME="$BISQ_RELEASE_NAME.zip"
export GRADLE_DIST_NAME="cli.tar" export GRADLE_DIST_NAME="cli.tar"

View File

@ -1,6 +1,11 @@
#! /bin/bash #! /bin/bash
export BISQ_RELEASE_NAME="bisq-daemon-release" VERSION="$1"
if [[ -z "$VERSION" ]]; then
VERSION="SNAPSHOT"
fi
export BISQ_RELEASE_NAME="bisq-daemon-$VERSION"
export BISQ_RELEASE_ZIP_NAME="$BISQ_RELEASE_NAME.zip" export BISQ_RELEASE_ZIP_NAME="$BISQ_RELEASE_NAME.zip"
export GRADLE_DIST_NAME="daemon.tar" export GRADLE_DIST_NAME="daemon.tar"