Skip to content

Commit

Permalink
Update static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Jan 26, 2024
1 parent 2c5adf2 commit 01d4b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/static.yml
Expand Up @@ -27,9 +27,9 @@ jobs:
# Step to mirror the Freenet website and remove script tags
- name: Mirror Freenet Website and Remove Script Tags
run: |
sudo apt-get install wget
sudo apt-get install wget perl
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://freenet.org -P freenet-website/
find freenet-website/ -name "*.html" -exec sed -i '/<script/,/<\/script>/d' {} \;
find freenet-website/ -name "*.html" -exec perl -i -0pe 's/<script.*?<\/script>//gs' {} \;
mv freenet-website/freenet.org/* freenet-website/
mv freenet-website/freenet.org/.* freenet-website/ || true
rmdir freenet-website/freenet.org
Expand Down

0 comments on commit 01d4b68

Please sign in to comment.