Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit a847698

Browse files
committed
New: check for uncommitted changes
1 parent f1523dd commit a847698

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

makeRelease.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ read -p "Did you update/commit the version in pyproject.toml " yn
2020
esac
2121
done
2222

23+
if [ -z "$(git status --porcelain)" ]; then
24+
echo "Working directory clean"
25+
else
26+
read -p "You have uncommitted changes do you really want to release? " yn
27+
case $yn in
28+
[Yy]* ) break;;
29+
[Nn]* ) exit;;
30+
* ) echo "Please answer yes or no.";;
31+
esac
32+
fi
33+
2334
echo "Building webpack bundle"
2435
npm run dist
2536

0 commit comments

Comments
 (0)