From 24a607df01c7658185d4c93d23c744f298c0e9f1 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 20 Jun 2017 17:13:11 +0200 Subject: [PATCH] Convert hook to run for all affected repos --- .config/vcsh/hooks-available/ssh.post-run+enter | 6 +++++- .../vcsh/hooks-enabled/{ssh.post-enter => post-enter.ssh} | 0 .config/vcsh/hooks-enabled/{ssh.post-run => post-run.ssh} | 0 3 files changed, 5 insertions(+), 1 deletion(-) rename .config/vcsh/hooks-enabled/{ssh.post-enter => post-enter.ssh} (100%) rename .config/vcsh/hooks-enabled/{ssh.post-run => post-run.ssh} (100%) 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 -- 2.39.5