Skip to content

Commit

Permalink
Merge pull request #165 from tegonal/bugfix/update-version-README.sh
Browse files Browse the repository at this point in the history
make update-version-README.sh more flexible, only search for link
  • Loading branch information
robstoll authored Mar 13, 2024
2 parents 4ae0639 + af71c00 commit 8d74133
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

---

Expand Down
2 changes: 1 addition & 1 deletion src/releasing/update-version-README.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d74133

Please sign in to comment.