Skip to content

Commit 0d66da0

Browse files
committed
check if version is in a semver format otherwise build from source
1 parent 0533961 commit 0d66da0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build_scripts/shared_install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ install_timescaledb() {
125125
log "installing $pkg-$version for pg$pg"
126126

127127
[[ "$DRYRUN" = true ]] && continue
128-
128+
129129
# use deb packages only with timescaledb versions >= 2.24
130-
if [ "$(printf '%s\n' "$version" "2.24.0" | sort -V | tail -n1)" = "$version" ]; then
130+
# skip deb install for branch names (main, feature/foo, etc.) and build from source instead
131+
if [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]] && [ "$(printf '%s\n' "$version" "2.24.0" | sort -V | tail -n1)" = "$version" ]; then
131132
log "installing deb package for $pkg-$version for pg$pg"
132133

133134
install_timescaledb_for_pg_version "${pg}" "${version}"

0 commit comments

Comments
 (0)