From 4642a87017c84108a10dec13bf43127057cbcd3b Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 20 Jun 2017 11:22:25 +0200 Subject: [PATCH] Run remake hook for all repos --- .config/vcsh/hooks-available/crontab.post-run+enter | 6 +++++- .../{crontab.post-enter => post-enter.crontab} | 0 .../hooks-enabled/{crontab.post-run => post-run.crontab} | 0 3 files changed, 5 insertions(+), 1 deletion(-) rename .config/vcsh/hooks-enabled/{crontab.post-enter => post-enter.crontab} (100%) rename .config/vcsh/hooks-enabled/{crontab.post-run => post-run.crontab} (100%) diff --git a/.config/vcsh/hooks-available/crontab.post-run+enter b/.config/vcsh/hooks-available/crontab.post-run+enter index 48da5e1..29285c4 100755 --- a/.config/vcsh/hooks-available/crontab.post-run+enter +++ b/.config/vcsh/hooks-available/crontab.post-run+enter @@ -1,2 +1,6 @@ #!/bin/sh -exec make -sC ~/.crontab.d + +cd ~/.crontab.d +git ls-files . | grep -q . || exit 0 +echo Triggering remake of user crontab… >&2 +exec make -s diff --git a/.config/vcsh/hooks-enabled/crontab.post-enter b/.config/vcsh/hooks-enabled/post-enter.crontab similarity index 100% rename from .config/vcsh/hooks-enabled/crontab.post-enter rename to .config/vcsh/hooks-enabled/post-enter.crontab diff --git a/.config/vcsh/hooks-enabled/crontab.post-run b/.config/vcsh/hooks-enabled/post-run.crontab similarity index 100% rename from .config/vcsh/hooks-enabled/crontab.post-run rename to .config/vcsh/hooks-enabled/post-run.crontab -- 2.39.2