commit 80aa8f6deaa9e726c86d5c7ed5c31165383c16d4
parent 9f6b1ec4a3c96982bdf52fd039a1720274f70e04
Author: Cem Keylan <cem@ckyln.com>
Date: Thu, 13 Aug 2020 14:58:43 +0300
post-receive: move the README directory structure to the index
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/post-receive b/post-receive
@@ -63,7 +63,7 @@ rm -f index.html
for file in file/*.html; do
[ -f "$file" ] || continue
case "${file##*/}" in README*)
- ln -sf "$file" index.html
+ sed 's|"../|"|' "$file" > index.html
esac
done
[ -f index.html ] || ln -sf log.html index.html