From e1b1e38a6c7493519643e30b2a1d269d2b96fc78 Mon Sep 17 00:00:00 2001 From: Dmitriy Kovalenko Date: Tue, 28 Nov 2023 13:01:36 +0100 Subject: [PATCH] chore: Add unstaged changes protection to release.sh --- release.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release.sh b/release.sh index 8343474..08861d9 100644 --- a/release.sh +++ b/release.sh @@ -2,6 +2,12 @@ VERSION="$1" +if ! git diff --quiet; then + echo "Error: There are unstaged changes in the repository." + exit 1 +fi + +git checkout main git pull cargo install cargo-edit