From 374230e678d8742390949d7e7602b465ff182329 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Thu, 11 Aug 2022 14:56:56 -0700 Subject: [PATCH] Use `*` instead of `\+` in update-first-party.sh (#9143) Summary: This PR uses `*` instead of `\+` in `update-first-party.sh` because the BSD `sed` from macOS does not support `\+`, which is not POSIX standard. Pull Request resolved: https://github.com/facebook/hhvm/pull/9143 Test Plan: --- https://github.com/facebook/hhvm/issues/9144 is created by the updated version of this script from macOS, which was able to update the hash with `*`, but not with `\+`. Reviewed By: Wilfred Differential Revision: D38625879 Pulled By: Atry fbshipit-source-id: f9b60fe1763fe78039c8a35555215e3bd6424281 --- third-party/update-first-party.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/update-first-party.sh b/third-party/update-first-party.sh index 9f251f0decb..ab686c22502 100755 --- a/third-party/update-first-party.sh +++ b/third-party/update-first-party.sh @@ -23,5 +23,5 @@ while read -r MATCH; do wget -O "$FILE" "$URL" HASH="$(openssl dgst -sha256 "$FILE" | awk '{print $NF}')" rm "$FILE" - sed -i.orig -e 's/SHA[0-9]\+=[0-9a-z]\+/SHA256='"$HASH/" "$CMAKE_FILE" + sed -i.orig -e 's/SHA[0-9]*=[0-9a-z]*/SHA256='"$HASH/" "$CMAKE_FILE" done -- 2.11.4.GIT