lib/ssh/manager/cli.rb in ssh-manager-1.0.5 vs lib/ssh/manager/cli.rb in ssh-manager-1.0.6

- old
+ new

@@ -22,10 +22,10 @@ command = "--title=#{user}@#{ip} --command=" end #TODO: add title --title='connection name to identify ' #TODO: bug when no terminal is open => wants to open 2 terms #TODO: dnslookup - if via.nil? + if via.nil? or via.empty? %x(#{CONFIG['terminal']} #{command}"ssh #{user}@#{ip}") else %x(#{CONFIG['terminal']} #{command}"ssh -A -t #{via} ssh -A -t #{user}@#{ip}") end elsif CONFIG['terminal'] == "xterm" || CONFIG['terminal'] == "urxvt"