aboutsummaryrefslogtreecommitdiffstats
path: root/templates/diddle/root_clone.sh
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-10-07 15:51:43 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-10-07 15:51:43 +0300
commite037ecfa8cc0133a84fbed791b7658c474c3e748 (patch)
tree5305efc6c4b51caeeade79b172a1faab915a1d4e /templates/diddle/root_clone.sh
parent1b9ed1426e93c335c3ffa7836813cb109b89ee22 (diff)
Add hommabot jail
Diffstat (limited to 'templates/diddle/root_clone.sh')
-rw-r--r--templates/diddle/root_clone.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/templates/diddle/root_clone.sh b/templates/diddle/root_clone.sh
deleted file mode 100644
index a3dbdac..0000000
--- a/templates/diddle/root_clone.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-# Exits with 100 if the directory was changed
-
-if [ ! -f /root/diddle ]; then
- git clone https://github.com/jantuomi/diddle.git /root/diddle && exit 100
-fi
-
-cd /root/diddle
-before=$(git rev-parse HEAD)
-git fetch && git pull --ff-only --quiet
-after=$(git rev-parse HEAD)
-
-if [ "$before" != "$after" ]; then exit 100; fi