From 49afd16737ec481064c90bd3ebcd97f8d4e005d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20Kr=C3=B6han?= Date: Fri, 1 Apr 2022 12:03:14 +0200 Subject: [PATCH] Minor: Update release.sh --- release.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/release.sh b/release.sh index b162051b..b0ffeff7 100755 --- a/release.sh +++ b/release.sh @@ -25,6 +25,10 @@ if [[ "$(git rev-parse --abbrev-ref HEAD 2>/dev/null)" != "master" ]]; then ERROR_OCCURRED="1" fi +if [[ -n "$(git status --porcelain)" ]]; then + echo "Error: There are untracked changes. Please commit or stash them before releasing." + ERROR_OCCURRED="1" +fi TAG_NAME="version-$NEW_VERSION" if [[ "$(git tag -l "$TAG_NAME")" == "$TAG_NAME" ]]; then