mirror of
https://github.com/longbridge/developers.git
synced 2026-09-19 03:34:09 +08:00
7 lines
489 B
Bash
7 lines
489 B
Bash
# Iter all files in dist, replace `(\/zh-CN|\/zh-HK|\/en)/assets` into `https://static.lbkrs.com/openapi-website/$1/assets`
|
|
# If macOS
|
|
if [ "$(uname)" == "Darwin" ]; then
|
|
find ./dist -type f -name "*.html" -exec sed -i '' -E 's/(\/zh-CN|\/zh-HK|\/en)?\/assets\//https:\/\/static.lbkrs.com\/openapi-website\1\/assets\//g' {} +
|
|
else
|
|
find ./dist -type f -name "*.html" -exec sed -i -E 's/(\/zh-CN|\/zh-HK|\/en)?\/assets\//https:\/\/static.lbkrs.com\/openapi-website\1\/assets\//g' {} +
|
|
fi |