Skip to content

Commit dd86a9b

Browse files
committed
feat: confirm in script whether tag correct
1 parent 1c3e154 commit dd86a9b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/update_tags_and_docs.sh

+7
Original file line numberDiff line numberDiff line change
@@ -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)