From c3cfc79978583d67c11c8070f07d0797c48df2a6 Mon Sep 17 00:00:00 2001 From: Sebastian Burschel Date: Mon, 2 Sep 2024 10:18:34 +0200 Subject: [PATCH] Added some update hooks for uberspaces with local yadm installation --- .config/yadm/hooks/pre_pull | 6 ++++++ .config/yadm/hooks/pre_status | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 .config/yadm/hooks/pre_pull create mode 100644 .config/yadm/hooks/pre_status diff --git a/.config/yadm/hooks/pre_pull b/.config/yadm/hooks/pre_pull new file mode 100644 index 0000000..ae1e473 --- /dev/null +++ b/.config/yadm/hooks/pre_pull @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ -d "$HOME/.yadm-project" ]; then + cd $HOME/.yadm-project + git pull +fi diff --git a/.config/yadm/hooks/pre_status b/.config/yadm/hooks/pre_status new file mode 100644 index 0000000..ae1e473 --- /dev/null +++ b/.config/yadm/hooks/pre_status @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ -d "$HOME/.yadm-project" ]; then + cd $HOME/.yadm-project + git pull +fi