Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7def862

Browse files
committed
correct version matching pattern in tag update script
1 parent 9279ec4 commit 7def862

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎scripts/update_tags_and_docs.sh‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ echo "Extracted version: ${BOOKSTACK_VERSION}"
1616
# Remove the 'v' for our tags
1717
BOOKSTACK_VERSION="${BOOKSTACK_VERSION/#v/}"
1818
# Remove leading zeros to make the version fit a SemVer-shaped hole
19-
BOOKSTACK_VERSION="${BOOKSTACK_VERSION//.0?/.}"
19+
BOOKSTACK_VERSION="${BOOKSTACK_VERSION/.0/.}"
2020

2121
# If the version only has one decimal dot in it, it doesn't have a patch
2222
# version and one should be added to ensure semver-shape.
@@ -27,6 +27,13 @@ fi
2727

2828
echo "Tag name: ${BOOKSTACK_VERSION}"
2929

30+
read -p "Is the tag name correct? (y/n)" -n 1 -r
31+
echo
32+
if ! [[ "${REPLY}" =~ ^[Yy]$ ]]; then
33+
echo "Aborting.."
34+
exit 1
35+
fi
36+
3037
git tag -s -a "${BOOKSTACK_VERSION}" -m "Release version ${BOOKSTACK_VERSION}"
3138
git push --tags
3239

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /