exit pre script with exit 0

This commit is contained in:
Dominik Biedebach 2024-11-17 16:51:04 +01:00
parent cdc7e96db7
commit f5ad5c80a8

View File

@ -23,7 +23,7 @@ enter_pre_mode() {
if $is_on_tag && $pre_json_exists && $is_on_pre_mode; then if $is_on_tag && $pre_json_exists && $is_on_pre_mode; then
echo "You are already in pre mode for '$tag' on '$branch'" echo "You are already in pre mode for '$tag' on '$branch'"
exit 1 exit 0
fi fi
npx changeset pre exit npx changeset pre exit
@ -42,7 +42,7 @@ exit_pre_mode() {
if ! $needs_exit || ! $pre_json_exists; then if ! $needs_exit || ! $pre_json_exists; then
echo "You are not in pre mode" echo "You are not in pre mode"
exit 1 exit 0
fi fi
npx changeset pre exit npx changeset pre exit
@ -64,6 +64,6 @@ case "$BRANCH" in
exit_pre_mode exit_pre_mode
;; ;;
*) *)
exit 1 exit 0
;; ;;
esac esac