未验证 提交 16c2735d 编写于 作者: A Amir Ajorloo 提交者: GitHub

Use perl instead of sed to fix build error in macos. (#5700)

上级 8b89a1c7
......@@ -45,7 +45,7 @@ function build::frontend {
filename=("$(find "${localeDir}" -name 'main.*.js' -exec basename {} \;)")
mv "${localeDir}/${filename}" "${localeDir}/${language}.${filename}"
sed -i "s/${filename}/${language}.${filename}/" "${localeDir}/index.html"
perl -i -pe"s/${filename}/${language}.${filename}/" "${localeDir}/index.html"
done
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册