Apply fixes from Shellcheck via https://lift.sonatype.com

This commit is contained in:
Sonatype Lift Bot 2023-01-30 17:44:04 +00:00
parent d1dc39ad3b
commit 1fff20aad8

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