From 1fff20aad8f1859de5b2692be3bb9b12b1e0beff Mon Sep 17 00:00:00 2001 From: Sonatype Lift Bot Date: Mon, 30 Jan 2023 17:44:04 +0000 Subject: [PATCH] Apply fixes from Shellcheck via https://lift.sonatype.com --- localizefonts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localizefonts.sh b/localizefonts.sh index f3d189f1..072691bd 100755 --- a/localizefonts.sh +++ b/localizefonts.sh @@ -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