Skip to content

Commit 49afd16

Browse files
committed
Minor: Update release.sh
1 parent 948adf9 commit 49afd16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ if [[ "$(git rev-parse --abbrev-ref HEAD 2>/dev/null)" != "master" ]]; then
2525
ERROR_OCCURRED="1"
2626
fi
2727

28+
if [[ -n "$(git status --porcelain)" ]]; then
29+
echo "Error: There are untracked changes. Please commit or stash them before releasing."
30+
ERROR_OCCURRED="1"
31+
fi
2832

2933
TAG_NAME="version-$NEW_VERSION"
3034
if [[ "$(git tag -l "$TAG_NAME")" == "$TAG_NAME" ]]; then

0 commit comments

Comments
 (0)