A Bash script to add Ruffle to every page on a website with swf files #5884
-
This script alters files automatically, so you should backup your website files before running it. It occurs to me someone may want this script and I've never shared it. Here's a bash script to add Ruffle to every htm/html page on a website that contains swf embeds. It must be run in a website's base directory. It ignores files that don't end with .htm or .html, like JavaScript files. This script makes some assumptions, all of which are part of the sed, and the sed should be adjusted if any are false. Assumptions:
There is also one assumption made by the grep:
ruffle.sh:
Edit: Using the unpkg CDN: ruffle.sh:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This doesn't need an answer. It is merely a provided script. |
Beta Was this translation helpful? Give feedback.
This doesn't need an answer. It is merely a provided script.