diff --git a/scripts/review/rollback.sh b/scripts/review/rollback.sh index 3365241386..532ac44858 100755 --- a/scripts/review/rollback.sh +++ b/scripts/review/rollback.sh @@ -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