Pass empty suffix to sed on macOS (#598)
This commit is contained in:
parent
5686d0f832
commit
18b491b61d
|
@ -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
|
||||
""",
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue