From 3be3a8bfad39480716110b1ed2b2450c2139af69 Mon Sep 17 00:00:00 2001 From: srvrco Date: Fri, 1 Apr 2016 10:16:42 +0100 Subject: [PATCH] fix bug where default 'Host *' has spaces at the end --- rssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rssh b/rssh index 7e4c5cb..4926e2b 100755 --- a/rssh +++ b/rssh @@ -156,7 +156,7 @@ echo " Port ${port[${i}]}" >> $conffile echo "${options[${i}]}" >> $conffile echo " " >> $conffile -sed -n "/^Host \*$/,/^$/p" ~/.ssh/config >> $conffile +sed -n "/^Host \*\( \|$\)/,/^$/p" ~/.ssh/config >> $conffile if [ "$opt" == "-v" ]; then cat $conffile