build(release): exit earlier on unclean wd
MODIFY
script/release
script/release
@@ -94,6 +94,11 @@ main() {
echo "Prerequisite Checks"
echo "==================="
+ if ! working_tree_is_clean; then
+ echo "Error: unclean working tree"
+ exit 1
+ fi
+
fetch
if ! remote_history_is_clean; then
echo "Error: changes exist on origin not pulled into this branch. Please pull"
@@ -105,11 +110,6 @@ main() {
exit 1
fi
- if ! working_tree_is_clean; then
- echo "Error: unclean working tree"
- exit 1
- fi
-
echo "Type the number of an option to bump, or pick Manual to enter a version number"
select bump in Major Minor Patch Manual
do

build(release): exit earlier on unclean wd