scripts/patch_pages

11 lines
266 B
Plaintext
Raw Normal View History

2024-08-29 03:39:19 +00:00
#!/bin/bash
shopt -s globstar
# Patch html
read -p "This action may modify all .html files at '$PWD'"
for html in **/*.html ; do
# Override relative links to open in current tab instead
sed -i 's~href="patcher/" target="_blank"~href="patcher/"~g' "$html"
done