From 63b109b73d98289b1004a3a0206b024569713bb7 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Sun, 14 Jan 2024 22:12:58 +0100 Subject: [PATCH] Fix SNAPSHOT version logic The POMs got reformatted with openhab/openhab-distro#1627. Signed-off-by: Wouter Born --- helper-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper-functions b/helper-functions index 2d597f2e..e68f670f 100644 --- a/helper-functions +++ b/helper-functions @@ -12,7 +12,7 @@ get_released_versions_from_tags() { get_snapshot_versions_from_poms() { local branch_names="$(git ls-remote --refs --heads "https://github.com/${DISTRO_REPO}.git" | grep -E '.+/heads/(main)$' | sed -E 's#.+/heads/(.+)#\1#g')" for branch_name in $branch_names; do - curl -sS "https://raw.githubusercontent.com/${DISTRO_REPO}/${branch_name}/pom.xml" | grep -E '^ ' | grep 'SNAPSHOT' | sed -E 's#.+(.+)-SNAPSHOT#\1-snapshot#g' || echo "" + curl -sS "https://raw.githubusercontent.com/${DISTRO_REPO}/${branch_name}/pom.xml" | grep -E '^ ' | grep 'SNAPSHOT' | sed -E 's#.+(.+)-SNAPSHOT#\1-snapshot#g' || echo "" done }