Skip to content

Commit

Permalink
exit pre script with exit 0
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch committed Nov 17, 2024
1 parent 2e3445c commit 3b76c10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/manage-pre-mode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ enter_pre_mode() {

if $is_on_tag && $pre_json_exists && $is_on_pre_mode; then
echo "You are already in pre mode for '$tag' on '$branch'"
exit 1
exit 0
fi

npx changeset pre exit
Expand All @@ -42,7 +42,7 @@ exit_pre_mode() {

if ! $needs_exit || ! $pre_json_exists; then
echo "You are not in pre mode"
exit 1
exit 0
fi

npx changeset pre exit
Expand All @@ -64,6 +64,6 @@ case "$BRANCH" in
exit_pre_mode
;;
*)
exit 1
exit 0
;;
esac

0 comments on commit 3b76c10

Please sign in to comment.