summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vince Harron <vharron@google.com> 2021-11-12 18:28:01 -0800
committer Vince Harron <vharron@google.com> 2021-11-17 22:32:57 +0000
commitb3a17c77bef7b6113d724225a06e53301e12902c (patch)
treefae16167f1ce0d861dab684654355f72d8ea42fb
parent9220245e47ed1198bf999caa9abe1df58c536153 (diff)
BSD grep doesn't support -P
Test: New grep command tested on Linux and macOS Bug: b/206150971 Change-Id: I9f1684298672fee1561166a03392bd07be8c5cd6
-rwxr-xr-xtools/aosp/aosp_sha.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aosp/aosp_sha.sh b/tools/aosp/aosp_sha.sh
index ac23c3d9cb4a..36bea57b710f 100755
--- a/tools/aosp/aosp_sha.sh
+++ b/tools/aosp/aosp_sha.sh
@@ -1,7 +1,7 @@
#!/bin/bash
LOCAL_DIR="$( dirname "${BASH_SOURCE}" )"
-if git branch -vv | grep -q -P "^\*[^\[]+\[aosp/"; then
+if git branch -vv | grep -q -E "^\*[^\[]+\[aosp/"; then
# Change appears to be in AOSP
exit 0
elif git log -n 1 --format='%B' $1 | grep -q -E "^Ignore-AOSP-First: .+" ; then