Skip to content

Commit

Permalink
Make grep call POSIX compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Jan 21, 2024
1 parent dc4b5dc commit db5cd33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/review/rollback.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pr="${1}"
author="$(gh pr view "${pr}" --json author -q .author.login)"

review_branch="review/${author}"
if git branch -v | egrep -s "^\s+${review_branch}\s+"; then
if git branch -v | grep -E -s "^\s+${review_branch}\s+"; then
git branch -d "${review_branch}"
fi

Expand Down

0 comments on commit db5cd33

Please sign in to comment.