diff options
author | Parabola git <git@parabola.nu> | 2021-03-05 03:00:03 +0000 |
---|---|---|
committer | Parabola git <git@parabola.nu> | 2021-03-05 03:00:03 +0000 |
commit | 0675a03897472aa31c5ba8daf9f0586def256ce9 (patch) | |
tree | 070ccdf7fc920f809ad73544bfc2578b6b663a89 | |
parent | e1eec9a7540f3c9525710e12d78635133e9b9da1 (diff) |
Update from cron
-rwxr-xr-x | .local/bin/gitmeta | 2 | ||||
-rwxr-xr-x | .local/bin/update-agefiles | 7 |
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 |