From 1143707b48d3e351027bb66516934ea5ab7c2ce5 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 20 Mar 2023 05:45:59 -0400 Subject: [PATCH] Latest --- home/private_dot_ssh/run_onchanges_after_decrypt-ssh-keys.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/private_dot_ssh/run_onchanges_after_decrypt-ssh-keys.tmpl b/home/private_dot_ssh/run_onchanges_after_decrypt-ssh-keys.tmpl index 8ab6e5b7..f5c0c174 100644 --- a/home/private_dot_ssh/run_onchanges_after_decrypt-ssh-keys.tmpl +++ b/home/private_dot_ssh/run_onchanges_after_decrypt-ssh-keys.tmpl @@ -5,7 +5,7 @@ {{ includeTemplate "universal/logg" }} logg info 'Decrypting SSH keys stored in the `home/.chezmoitemplates/ssh` folder of the Install Doctor repo / fork.' -find "{{ .chezmoi.sourceDir }}/.chezmoitemplates/ssh" -type f | while read SSH_FILE; do +find "{{ .chezmoi.sourceDir }}/.chezmoitemplates/ssh" -type f -maxdepth 1 ! -name "*.pub" ! -name "authorized_keys*" ! -name "known_host*" ! -name "config" | while read SSH_FILE; do ### Decrypt SSH file with Chezmoi logg info 'Decrypting the $(basename "$SSH_FILE") encrypted SSH file' chezmoi decrypt "$SSH_FILE" > "$HOME/.ssh/$(basename "$SSH_FILE")" || EXIT_CODE=$?