list

scripts

Repo containing scripts to be used with dovel, and git hooks that powers our web interface.

curl https://dovel.email/scripts.tar tar

124b9d1

Author: blmayer (bleemayer@gmail.com)

Date: Wed Oct 4 02:52:09 2023 -0300

Parent: 3fb7deb

Fixed pipe

Diff

post-receive

diff --git a/post-receive b/post-receive
index c360dc8..ffb86f6 100755
--- a/post-receive
+++ b/post-receive
@@ -220,7 +220,10 @@ updatetree() {
 		EOF
 
 		# create html page with file content
-		git show --format='' --name-status "$1" -- "$f" | read -r op x
+		read -r op x <<- EOF
+		$(git show --format='' --name-status "$1" -- "$f")
+		EOF
+
 		case "$op" in
 			"D") rm "$OUT/tree/$f.html" ;;
 			"C"|"M") filepage "$f" > "$OUT/tree/$f.html" ;;