Pass empty suffix to sed on macOS (#598)

This commit is contained in:
James Sharpe 2021-03-31 23:46:19 +01:00 committed by GitHub
parent 5686d0f832
commit 18b491b61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ def replace_in_files(dir, from_, to_):
return FunctionAndCall(
text = """\
if [ -d "$1" ]; then
find -L -f $1 \\( -name "*.pc" -or -name "*.la" -or -name "*-config" -or -name "*.cmake" \\) -exec sed -i -e 's@'"$2"'@'"$3"'@g' {} ';'
find -L -f $1 \\( -name "*.pc" -or -name "*.la" -or -name "*-config" -or -name "*.cmake" \\) -exec sed -i '' -e 's@'"$2"'@'"$3"'@g' {} ';'
fi
""",
)