Skip to content

Commit 2663f79

Browse files
authored
Make GPDB_FULL_VERSION without "_" (#22)
* Make GPDB_FULL_VERSION without "_"
1 parent 3436cf3 commit 2663f79

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

scripts/build-deb.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ export GPDB_FULL_VERSION=$VERSION
102102
# Set version if not provided
103103
if [ -z "${VERSION}" ]; then
104104
export GPDB_FULL_VERSION=$(./getversion | cut -d'-' -f 1 | cut -d'+' -f 1)
105-
fi
106105

107-
if [[ ! $GPDB_FULL_VERSION =~ ^[0-9] ]]; then
108-
export GPDB_FULL_VERSION="0.$GPDB_FULL_VERSION"
109-
fi
106+
export GPDB_FULL_VERSION=${GPDB_FULL_VERSION//_/-}
107+
108+
if [[ ! $GPDB_FULL_VERSION =~ ^[0-9] ]]; then
109+
export GPDB_FULL_VERSION="6.$GPDB_FULL_VERSION"
110+
fi
111+
fi
110112

111113
if [ -z ${BUILD_NUMBER+x} ]; then
112114
export BUILD_NUMBER=1

0 commit comments

Comments
 (0)