From db5cd338ee779b7a609cc94af491b1213e8215b6 Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Sun, 21 Jan 2024 19:00:04 +0100 Subject: [PATCH] Make grep call POSIX compliant --- scripts/review/rollback.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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