From 152138de3a456dbec3acbfee410a8f4955eab5b3 Mon Sep 17 00:00:00 2001 From: gpcf Date: Tue, 15 Oct 2024 21:42:31 +0200 Subject: add cronjob --- cronjob.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 cronjob.sh diff --git a/cronjob.sh b/cronjob.sh new file mode 100644 index 0000000..17ce07f --- /dev/null +++ b/cronjob.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +INPUT="$1" +OUTPUT="$2" +BASEPATH=$(dirname $0) + +mkdir -p "$OUTPUT" + +luajit $BASEPATH/gitexporter.lua "$INPUT" "$OUTPUT" + +cd "$OUTPUT" + +git init +git config user.name "autocommitter" +git config user.email "autocommitter@linux-forks.de" + +rm -rf BBT BBT_demo birchbay EldersValley lavacity trapcity personhood + +git add . + +git commit -m "State at $d" +git push +rm -rf * -- cgit v1.2.3