mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
11 lines
312 B
Bash
Executable file
11 lines
312 B
Bash
Executable file
#!/bin/sh
|
|
|
|
base='https://fonts\.(gstatic\.com|kavin\.rocks)'
|
|
fonts=$(cat dist/assets/* | grep -Eo "${base}[^)]*" | sort | uniq)
|
|
|
|
for font in $fonts; do
|
|
file="dist/fonts$(echo "$font" | sed -E "s#$base##")"
|
|
mkdir -p "$(dirname "$file")"
|
|
curl -L "$font" -o "$file"
|
|
done
|
|
sed -Ei "s#$base#/fonts#g" dist/assets/*
|