From b996e91215f96d630e18049db0e418494285cee9 Mon Sep 17 00:00:00 2001 From: Pat Date: Tue, 19 Dec 2023 10:41:10 +0000 Subject: [PATCH] scripts: fix update_version.sh for snap (#8305) * scripts: fix snap update call Signed-off-by: Patrick Stephens * build: bump to v2.2.0 Signed-off-by: Patrick Stephens * dockerfile: bump to v2.2.0 Signed-off-by: Patrick Stephens * scripts: fix snap update call Signed-off-by: Patrick Stephens --------- Signed-off-by: Patrick Stephens --- snap/snapcraft.yaml | 2 +- update_version.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6b5e42d0a19..8d292d62c70 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,6 +1,6 @@ name: fluent-bit base: core18 -version: '2.1.10' +version: '2.2.1' summary: High performance logs and stream processor description: | Fluent Bit is a high performance log processor and stream processor for Linux. diff --git a/update_version.sh b/update_version.sh index 998db1c2ade..b93eeb2ea61 100755 --- a/update_version.sh +++ b/update_version.sh @@ -72,7 +72,7 @@ sed_wrapper -i "s/ARG RELEASE_VERSION=[0-9].[0-9].[0-9]/ARG RELEASE_VERSION=$NEW # Snap -sed_wrapper -i "s/version: '[0-9].[0-9].[0-9]'/version: '$NEW_VERSION'/g" "$SCRIPT_DIR"/snap/snapcraft.yaml +sed_wrapper -i -E "s/version: '[0-9]+\.[0-9]+\.[0-9]+'/version: '$NEW_VERSION'/g" "$SCRIPT_DIR"/snap/snapcraft.yaml # Bitbake / Yocto if [[ -f "fluent-bit-$NEW_VERSION.bb" ]]; then