From 0359c97ce98a6b4ec7ae71be5d2ec0e52cc329a6 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Sat, 10 Apr 2021 02:06:13 +0300 Subject: [PATCH] Fixed critical issue where in some cases there was no output --- sshukh.plugin.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sshukh.plugin.zsh b/sshukh.plugin.zsh index de1d92c..89161e0 100755 --- a/sshukh.plugin.zsh +++ b/sshukh.plugin.zsh @@ -14,8 +14,7 @@ # ------------------------------------------------------------------------------ sshukh () { - output=$(\ssh "$@" 2>&1) - echo $output + output=$(\ssh "$@" 2>&1 | tee /dev/tty) error=$(echo $output | tail -1) if [[ "$error" == "Host key verification failed."* ]]; then host=$(cut -d'@' -f2 <<< $1)