mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 14:06:20 +00:00
Correctly get version from release branch
This commit is contained in:
committed by
Artem Gavrilov
parent
660190b2a0
commit
1f3754f046
@@ -119,7 +119,10 @@ get_sources(){
|
|||||||
fi
|
fi
|
||||||
PRODUCT=percona-pg-stat-monitor${PG_RELEASE}
|
PRODUCT=percona-pg-stat-monitor${PG_RELEASE}
|
||||||
PRODUCT_FULL=${PRODUCT}-${VERSION}
|
PRODUCT_FULL=${PRODUCT}-${VERSION}
|
||||||
|
IS_RELEASE_BRANCH=$(echo ${BRANCH} | grep -c release);
|
||||||
|
if [ ${IS_RELEASE_BRANCH} != 0 ]; then
|
||||||
|
VERSION=$(echo $BRANCH | awk -F'-' '{print $2}')
|
||||||
|
fi
|
||||||
echo "PRODUCT=${PRODUCT}" > pg-stat-monitor.properties
|
echo "PRODUCT=${PRODUCT}" > pg-stat-monitor.properties
|
||||||
echo "PRODUCT_FULL=${PRODUCT_FULL}" >> pg-stat-monitor.properties
|
echo "PRODUCT_FULL=${PRODUCT_FULL}" >> pg-stat-monitor.properties
|
||||||
echo "VERSION=${VERSION}" >> pg-stat-monitor.properties
|
echo "VERSION=${VERSION}" >> pg-stat-monitor.properties
|
||||||
|
|||||||
Reference in New Issue
Block a user