Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: brian (git@myr.sh)
Date: Tue Sep 19 01:26:59 2023 -0300
Parent: 49ce4e4
Fixed tmp dir
diff --git a/post-receive-scripts b/post-receive-scripts
index 3f8c439..2cd321d 100755
--- a/post-receive-scripts
+++ b/post-receive-scripts
@@ -15,7 +15,7 @@ do
if [ "$ref" = "refs/heads/$BRANCH" ]
then
echo "Ref $ref received. Deploying ${BRANCH} branch on server..."
- TMP="$(mktemp)"
+ TMP="$(mktemp -d)"
git --work-tree="$TMP" checkout -f ${BRANCH}
cp "$TMP/post-receive-scripts" "./hooks/post-receive"
cp "$TMP/post-receive" "../web/hooks/post-receive"