[Fix] CDN Problem

This commit is contained in:
Harry-zklcdc 2021-07-12 13:49:18 +08:00
parent 3b13d7dc2d
commit 1e631e2eee

View File

@ -48,9 +48,9 @@ fi
cd $APP/dist cd $APP/dist
if [ ! -z "$STATIC_CDN_HOST" ]; then if [ ! -z "$STATIC_CDN_HOST" ]; then
find . -name "*.*" -type f -exec sed -i "s/__STATIC_CDN_HOST__/\/$STATIC_CDN_HOST/g" {} \; find . -name "*.*" -type f -exec sed -i "s|\/__STATIC_CDN_HOST__|$STATIC_CDN_HOST|g" {} \;
else else
find . -name "*.*" -type f -exec sed -i "s/__STATIC_CDN_HOST__\///g" {} \; find . -name "*.*" -type f -exec sed -i "s|__STATIC_CDN_HOST__\/||g" {} \;
fi fi
cd $APP cd $APP