Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darrytai committed May 21, 2024
1 parent bc819fb commit 2e55ddd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ jobs:
dist_dir="dist/fonts"
curl -o $css_file $css_url
# font_urls=$(grep -oP 'url\(\K[^)]+' style.css | sort -u | sed 's/[?#].*//')
font_urls=$(grep -oP 'url\(\K[^)]+' style.css | sort -u)
curl -o "dist/fonts/TMicon.eot" "https://i.icomoon.io/public/a8317e20c1/TMIcons/TMicon.eot?73rtx5#iefix"
for url in $font_urls; do
filename=$(basename "$url")
echo "$filename"
# clean_url=$(echo $url | sed 's/[?#].*//')
# echo "$clean_url"
# filename=$(basename "$clean_url")
clean_url=$(echo $url | sed 's/[?#].*//')
echo "$clean_url"
filename=$(basename "$clean_url")
# echo "$filename"
# # curl -o "$dist_dir/$filename" "$clean_url"
done
Expand Down

0 comments on commit 2e55ddd

Please sign in to comment.