mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-04 04:33:39 +00:00
Fix compatibility with busybox's grep.
This commit is contained in:
parent
23c0dc50bf
commit
a2e2c74a38
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
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 -Eo "${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")"
|
||||||
|
Loading…
Reference in New Issue
Block a user