Skip to content

Commit

Permalink
forgot grep returns non-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronosMasterOfAllTime committed Dec 19, 2024
1 parent 7afb72b commit b4e5b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update_app_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ BRANCH_NAME_PREFIX="update-app-version"

BRANCH_NAME="$BRANCH_NAME_PREFIX-$LATEST_DRAFT_VERSION"

EXISTS=$(git branch -r -l 'origin*' | sed -E -e 's/^[^\/]+\///g' -e 's/HEAD.+//' | grep "$BRANCH_NAME")
EXISTS=$(git branch -r -l 'origin*' | sed -E -e 's/^[^\/]+\///g' -e 's/HEAD.+//' | grep "$BRANCH_NAME") || echo "false"

if [[ -n $EXISTS ]]; then
if [[ -n $EXISTS ]] && [[ $EXISTS != "false" ]]; then
echo "A PR already exists on branch $BRANCH_NAME for App Version update: $LATET_DRAFT_VERSION"
exit 0
fi
Expand Down

0 comments on commit b4e5b71

Please sign in to comment.