Merge pull request #2044 from TeamPiped/lift/Shellcheck-1fff20aa

Shellcheck Fixes
This commit is contained in:
Kavin 2023-01-30 17:47:48 +00:00 committed by GitHub
commit fe0fe2ab18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
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 -E "s#$base##")"
file="dist/fonts$(echo "$font" | sed -E "s#$base##")"
mkdir -p "$(dirname "$file")"
curl -L "$font" -o "$file"
done