Skip to content

Commit

Permalink
fix release.sh regarding read-only variable
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll committed Apr 3, 2024
1 parent 1e33367 commit 5a1b631
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ function release() {
local -r githubUrl="https://github.com/tegonal/scala-commons"
replaceTagInPullRequestTemplate "$projectsRootDir/.github/PULL_REQUEST_TEMPLATE.md" "$githubUrl" "$version" || die "could not fill the placeholders in PULL_REQUEST_TEMPLATE.md"

local -r versionWithoutLeadingV
versionWithoutLeadingV="${version:1}"
local -r versionWithoutLeadingV="${version:1}"

perl -0777 -i \
-pe "s@(ThisBuild / version := )\"[^\"]+\"@\${1}\"$versionWithoutLeadingV\"@g;" \
Expand Down

0 comments on commit 5a1b631

Please sign in to comment.