Browse Source

fix bug where default 'Host *' has spaces at the end

master
srvrco 10 years ago
parent
commit
3be3a8bfad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      rssh

+ 1
- 1
rssh View File

@ -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


Loading…
Cancel
Save