From f499e09e4328d59b1f18e50bacf33d7a502cf55b Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Tue, 20 Feb 2018 03:40:20 +0100 Subject: [PATCH] Pipe ssh-agent output to debug log. --- home/dotfiles/profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/dotfiles/profile b/home/dotfiles/profile index bfa7701..8d89722 100644 --- a/home/dotfiles/profile +++ b/home/dotfiles/profile @@ -261,7 +261,9 @@ section_end section "ssh-agent" if [ $PROFILE_SSH_AGENT -gt 0 ]; then if [ -z "$SSH_AUTH_SOCK" ]; then - eval "$(ssh-agent -s)" + eval "$(ssh-agent -s)" | while IFS= read -r line; do + log "$line" + done fi fi section_end