Skip to content

Commit

Permalink
INF-210 fix || exit 1 logic (#3635)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquincasares authored Aug 4, 2022
1 parent ae4bd30 commit be35ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ function bump-npm () {
fi

# only allow tags/commits found on master, release branches, or tags to be deployed
echo "tag has to be on master or a release branch"
git branch -a --contains ${GIT_TAG} \
| tee /dev/tty \
| grep -Eq 'remotes/origin/master|remotes/origin/release' \
|| echo "tag not found on master nor release branches" \
&& exit 1
|| exit 1

# Ensure working directory clean
git reset --hard ${GIT_TAG}
Expand Down

0 comments on commit be35ce8

Please sign in to comment.