From: martin f. krafft Date: Tue, 20 Jun 2017 09:22:25 +0000 (+0200) Subject: Run remake hook for all repos X-Git-Url: https://git.madduck.net/etc/crontab.git/commitdiff_plain/4642a87017c84108a10dec13bf43127057cbcd3b Run remake hook for all repos --- 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