Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

If there's just one machine found, just ssh to it dont show a menu

  • Loading branch information...
commit e9fcadd555bce73e5dd352818a72ab2dfd1bae50 1 parent e4422b1
@ripienaar ripienaar authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  utilities/mc-ssh/mc-ssh-highline
View
2  utilities/mc-ssh/mc-ssh-highline
@@ -38,6 +38,8 @@ client.options = options
# Shows a list of options and lets the user choose one
def pick(choices, title)
+ return choices[0][1] if choices.size == 1
+
choose do |menu|
menu.prompt = title
Please sign in to comment.
Something went wrong with that request. Please try again.