mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
fixed bug in localizefonts.sh
This commit is contained in:
parent
ef0dbb91ba
commit
585605312f
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@
|
|||
base='https://fonts\.(gstatic\.com|kavin\.rocks)'
|
||||
fonts=$(cat dist/assets/* | grep -Po "$base[^)]*" | sort | uniq)
|
||||
for font in $fonts; do
|
||||
file="dist/fonts$(echo $font | sed "s#$base##")"
|
||||
file="dist/fonts$(echo $font | sed -E "s#$base##")"
|
||||
mkdir -p "$(dirname "$file")"
|
||||
curl -L "$font" -o "$file"
|
||||
done
|
||||
sed -i "s#$base#/fonts#g" dist/assets/*
|
||||
sed -Ei "s#$base#/fonts#g" dist/assets/*
|
||||
|
|
Loading…
Reference in a new issue