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 0214c0bbb19a017616000f92b7fd5e0a2812b28f
parent 1af2f97b566644a77db6e29fbfb2c4791df82e06
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 27 Apr 2024 16:18:02 +0200

fit into single line

Diffstat:
Mbin/git_update_repo_html.sh | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -27,12 +27,9 @@ if [ -z $(find "${1}/${2}/${3}/file/" -type f -name "README*.html") ]; then ln -sf "${1}/${2}/${3}/log.html" "${1}/${2}/${3}/index.html" else # use readme as index - file "${1}/${2}/${3}/file/" \ - -type f \ - -name "README*.html" \ - -exec cp {} "${1}/${2}/${3}/index.html" \; + file "file/" -type f -name "README*.html" -exec cp {} "index.html" \; # adjust relative paths accordingly - sed -e 's/\.\.\///g' -i "${1}/${2}/${3}/index.html" + sed -e 's/\.\.\///g' -i "index.html" fi # Protect Mail-Adresses in HTML