Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 66edafd

Browse files
committed
preserve spaces
1 parent 8dff1a0 commit 66edafd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LATEST_TAG=$(git describe --abbrev=0 --tags | sed 's/^v//') || exit $?
99
find . -name README.md | while read -r file; do
1010
awk -v tag="$LATEST_TAG" '{
1111
if ($1 == "version" && $2 == "=") {
12-
sub(/=.*/, "= \"" tag "\"")
12+
sub(/"[^"]*"/, "\"" tag "\"")
1313
print
1414
} else {
1515
print

0 commit comments

Comments
 (0)