Skip to content

Commit e3231df

Browse files
committed
feat: confirm in script whether tag correct
1 parent 359b53a commit e3231df

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/update_tags_and_docs.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ 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+
continue;
34+
else
35+
echo "Aborting.."
36+
exit 1
37+
fi
38+
3039
git tag -s -a "${BOOKSTACK_VERSION}" -m "Release version ${BOOKSTACK_VERSION}"
3140
git push --tags
3241

0 commit comments

Comments
 (0)