diff --git a/.local/share/chezmoi/home/dot_ssh/run_onchanges_after_generate-public-keys.tmpl b/.local/share/chezmoi/home/dot_ssh/run_onchanges_after_generate-public-keys.tmpl index 07fc246b..9b9c424c 100644 --- a/.local/share/chezmoi/home/dot_ssh/run_onchanges_after_generate-public-keys.tmpl +++ b/.local/share/chezmoi/home/dot_ssh/run_onchanges_after_generate-public-keys.tmpl @@ -10,11 +10,11 @@ {{- includeTemplate "universal/profile" }} {{- includeTemplate "universal/logg" }} -logg 'Ensuring RSA public keys are present' +logg info 'Ensuring RSA public keys are present' find "$HOME/.ssh" -type f | while read FILE; do if [ ! -f "${FILE}" ] && cat "$FILE" | grep 'BEGIN RSA PRIVATE KEY'; then - logg 'Generating missing public key for `'"$FILE"'`' + logg info 'Generating missing public key for `'"$FILE"'`' ssh-keygen -f "$FILE" -y > "${FILE}.pub" fi done