Skip to content

Commit 37f1c87

Browse files
committed
Publish script: check that all changes are committed
1 parent 4977de3 commit 37f1c87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extras/scripts/publish.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ set -eu
44

55
cd "$(dirname "$0")/../.."
66

7+
if ! git diff --quiet --exit-code; then
8+
echo "Repository contains uncommitted changes"
9+
exit
10+
fi
11+
712
VERSION="$1"
813
DATE=$(date +%F)
914
TAG="v$VERSION"

0 commit comments

Comments
 (0)