mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-26 15:37:24 +00:00
Merge pull request #2044 from TeamPiped/lift/Shellcheck-1fff20aa
Shellcheck Fixes
This commit is contained in:
commit
fe0fe2ab18
@ -3,7 +3,7 @@
|
|||||||
base='https://fonts\.(gstatic\.com|kavin\.rocks)'
|
base='https://fonts\.(gstatic\.com|kavin\.rocks)'
|
||||||
fonts=$(cat dist/assets/* | grep -Po "$base[^)]*" | sort | uniq)
|
fonts=$(cat dist/assets/* | grep -Po "$base[^)]*" | sort | uniq)
|
||||||
for font in $fonts; do
|
for font in $fonts; do
|
||||||
file="dist/fonts$(echo $font | sed -E "s#$base##")"
|
file="dist/fonts$(echo "$font" | sed -E "s#$base##")"
|
||||||
mkdir -p "$(dirname "$file")"
|
mkdir -p "$(dirname "$file")"
|
||||||
curl -L "$font" -o "$file"
|
curl -L "$font" -o "$file"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user