From: martin f. krafft Date: Tue, 20 Jun 2017 15:13:11 +0000 (+0200) Subject: Convert hook to run for all affected repos X-Git-Url: https://git.madduck.net/etc/ssh.git/commitdiff_plain/24a607df01c7658185d4c93d23c744f298c0e9f1 Convert hook to run for all affected repos --- diff --git a/.config/vcsh/hooks-available/ssh.post-run+enter b/.config/vcsh/hooks-available/ssh.post-run+enter index 282a23f..2c8274a 100755 --- a/.config/vcsh/hooks-available/ssh.post-run+enter +++ b/.config/vcsh/hooks-available/ssh.post-run+enter @@ -1,2 +1,6 @@ #!/bin/sh -exec make -sC ~/.ssh + +cd ~/.ssh +git ls-files . | grep -q . || exit 0 +echo Triggering remake of SSH config… >&2 +exec make -s diff --git a/.config/vcsh/hooks-enabled/ssh.post-enter b/.config/vcsh/hooks-enabled/post-enter.ssh similarity index 100% rename from .config/vcsh/hooks-enabled/ssh.post-enter rename to .config/vcsh/hooks-enabled/post-enter.ssh diff --git a/.config/vcsh/hooks-enabled/ssh.post-run b/.config/vcsh/hooks-enabled/post-run.ssh similarity index 100% rename from .config/vcsh/hooks-enabled/ssh.post-run rename to .config/vcsh/hooks-enabled/post-run.ssh