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

6dbe03e

Author: brian (git@myr.sh)

Date: Wed Sep 20 01:24:48 2023 -0300

Parent: 7e3ae45

Updated scripts hook

Diff

diff --git a/post-receive-scripts b/post-receive-scripts
index f836ff2..2f6539e 100755
--- a/post-receive-scripts
+++ b/post-receive-scripts
@@ -4,6 +4,13 @@
#set -ex

BRANCH="main"
+REPO="$(basename $PWD)"
+OUT="$HOME/www/dovel.email"
+GITDIR="$HOME/git/dovel.email"
+
+[ -d "$OUT/$REPO/tree" ] || mkdir -p "$OUT/$REPO/tree"
+
+git clone . "$OUT/$REPO/tree"

while read oldrev newrev ref
do
@@ -30,8 +37,8 @@ do
fi
done

-sh ./hooks/update-git-index
-sh ./hooks/update-repo-index
+. ./hooks/update-git-index
+. ./hooks/update-repo-index

echo "cleaning up TMP"
rm -fr "$TMP"