summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParabola git <git@parabola.nu>2021-03-05 03:00:03 +0000
committerParabola git <git@parabola.nu>2021-03-05 03:00:03 +0000
commit85ae0dffeb403fb0781734b28140663412ee3500 (patch)
treefdcf3abde5cee58f4fbaec474d77f280f29d2090
parentd980c4c459b1c4522beffd5589b0a7f3792f2be2 (diff)
Update from cron
-rwxr-xr-x.local/bin/gitmeta2
-rwxr-xr-x.local/bin/update-agefiles7
2 files changed, 6 insertions, 3 deletions
diff --git a/.local/bin/gitmeta b/.local/bin/gitmeta
index b5d6081..fbbb343 100755
--- a/.local/bin/gitmeta
+++ b/.local/bin/gitmeta
@@ -1,3 +1,5 @@
#!/bin/sh
+
export GIT_DIR=$HOME/.gitmeta
+
exec git "$@"
diff --git a/.local/bin/update-agefiles b/.local/bin/update-agefiles
index 0e24062..0b9a8a8 100755
--- a/.local/bin/update-agefiles
+++ b/.local/bin/update-agefiles
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+
set -e
cd
@@ -6,7 +7,7 @@ cd
IFS=''
find . -not -path '*/.*' -path '*.git' -type d |
while read -r git_dir; do
- pushd "$git_dir"
- ~/git-hooks/post-receive.agefile
- popd >/dev/null
+ pushd "$git_dir"
+ ~/git-hooks/post-receive.agefile
+ popd >/dev/null
done