Guard against bsd sed (#13735)

This commit is contained in:
Jack May 2020-11-21 17:56:23 -08:00 committed by GitHub
parent 3087c90490
commit 1d008bab4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ VERSION_FOR_DOCS_RS="${LATEST_SOLANA_RELEASE_VERSION:1}"
set -x
if [[ -n $CI ]]; then
sed --version || { echo "Error: Incompatible version of sed, use gnu sed"; exit 1; }
find src/ -name \*.md -exec sed -i "s/LATEST_SOLANA_RELEASE_VERSION/$LATEST_SOLANA_RELEASE_VERSION/g" {} \;
find src/ -name \*.md -exec sed -i "s/VERSION_FOR_DOCS_RS/$VERSION_FOR_DOCS_RS/g" {} \;
fi