From af71c0095babbec50fcfaf7c044f7587ac2cf725 Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Wed, 13 Mar 2024 20:06:35 +0100 Subject: [PATCH] make update-version-README.sh more flexible, only search for link --- README.md | 2 +- src/releasing/update-version-README.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0af0d9d3..292b6eba 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Feel free to use it and report bugs if you should find one. --- ❗ You are taking a *sneak peek* at the next version. It could be that some features you find on this page are not released yet. -Please have a look at the README of the corresponding release/git tag. Latest version: [README of v1.3.1](https://github.com/tegonal/scripts/tree/v1.3.1/README.md). +Please have a look at the README of the corresponding release/git tag. Latest version: [README of v2.0.0](https://github.com/tegonal/scripts/tree/v2.0.0/README.md). --- diff --git a/src/releasing/update-version-README.sh b/src/releasing/update-version-README.sh index 10e8e36d..2adf16ba 100755 --- a/src/releasing/update-version-README.sh +++ b/src/releasing/update-version-README.sh @@ -74,7 +74,7 @@ function updateVersionReadme() { perl -0777 -i \ -pe "s@(\[!\[Download\]\(https://img.shields.io/badge/Download-).*(-%23[0-9a-f]+\)\]\([^\)]+(?:=|/))[^\)]+\)@\${1}$version\${2}$version\)@g;" \ - -pe "s@(For instance, the \[README of )[^\]]+(\].*/tree/)[^/]+/@\${1}$version\${2}$version/@;" \ + -pe "s@(\[README of )[^\]]+(\].*/tree/)[^/]+/@\${1}$version\${2}$version/@;" \ "$file" || returnDying "was not able to update the version in download badges and in the sneak peek banner" || return $? if [[ -n $additionalPattern ]]; then