From 565a8afe09b0d1ff1dcc4ba53edeb3e4cc1b0bb2 Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Mon, 24 Feb 2025 21:33:43 +0000 Subject: [PATCH] Fix helper script --- packit-update-sources.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packit-update-sources.sh b/packit-update-sources.sh index cbebc59..5875193 100755 --- a/packit-update-sources.sh +++ b/packit-update-sources.sh @@ -1,6 +1,8 @@ git clone --depth 1 --branch master https://github.com/postgres/postgres.git - cd postgres && git fetch --tags - NEW_MINOR=$(cd postgres && git tag -l "REL_15_*" | sed -E "s/REL_15_([0-9]+)/\1/" | sort -n | tail -n 1) + pushd postgres + git fetch --tags + NEW_MINOR=$(git tag -l "REL_15_*" | sed -E "s/REL_15_([0-9]+)/\1/" | sort -n | tail -n 1) + popd pushd $PACKIT_DOWNSTREAM_REPO sed -i "s/\(%global prevversion %{prevmajorversion}\)\.[0-9]\+/\1.$NEW_MINOR/" $PACKIT_DOWNSTREAM_PACKAGE_NAME' popd