pub / stagit-scripts

Building src.jayvii.de with stagit
git clone https://src.jayvii.de/pub/stagit-scripts.git
Home | Log | Files | Exports | Refs | README | RSS

commit d3326be4f3ef2c41a009a4718d162162ef4f9127
parent 12471812005aeba9fb47c1e23946568cea971731
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 27 Apr 2024 14:42:16 +0200

make regex-call fit single line

Diffstat:
Mbin/git_update_repo_html.sh | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -19,10 +19,7 @@ fi # Protect Mail-Adresses in HTML MAILEXP='s/([a-zA-Z0-9\.]+)\@([a-zA-Z0-9\-]+)\.([a-z]+)/\1\[AT\]\2\[DOT\]\3/g' -find "${1}/${2}/${3}/" \ - -type f \ # only files, not directories - -exec grep -Iq . {} \; \ # ignore binary files - -exec sed -E -e ${MAILEXP} -i {} \; # apply REGEX +find "${1}/${2}/${3}/" -type f -exec sed -E -e ${MAILEXP} -i {} \; # link assets ln -sf "${1}/assets/style.css" "${1}/${2}/${3}/style.css"