From cc7af05d721bcc58ad991ad8a6b013fb939bb536 Mon Sep 17 00:00:00 2001 From: Joshua Tai Date: Tue, 21 May 2024 14:24:18 +0800 Subject: [PATCH] fix --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c13498f..180ea0b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,9 +23,9 @@ jobs: font_urls=$(grep -oP 'url\(\K[^)]+' style.css | sort -u) for url in $font_urls; do - echo "URL: $url" - filename=$(basename "${url%%\?*}") - curl "$url" + clean_url=$(echo $url | sed 's/[?#].*//') + ffilename=$(basename "$clean_url") + curl -o "$dist_dir/$filename" "$clean_url" done # rm $css_file