diff options
author | elijah <elijah@riseup.net> | 2012-11-01 21:46:54 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-11-01 21:46:54 -0700 |
commit | 31c8c23bbb7e575be7c2231833dfec880c3d9d16 (patch) | |
tree | 7c1d00c704bcdca119af4289443ee378aec4795c /lib/leap_cli/commands/user.rb | |
parent | 134c09ef9e58dc52136610e480b13176a16d9715 (diff) |
fixed generation of authorized_keys and known_hosts: now entries are sorted
Diffstat (limited to 'lib/leap_cli/commands/user.rb')
-rw-r--r-- | lib/leap_cli/commands/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/user.rb b/lib/leap_cli/commands/user.rb index fbc366a..f0509ac 100644 --- a/lib/leap_cli/commands/user.rb +++ b/lib/leap_cli/commands/user.rb @@ -119,7 +119,7 @@ module LeapCli def update_authorized_keys buffer = StringIO.new - Dir.glob(path([:user_ssh, '*'])).each do |keyfile| + Dir.glob(path([:user_ssh, '*'])).sort.each do |keyfile| ssh_type, ssh_key = File.read(keyfile).strip.split(" ") buffer << ssh_type buffer << " " |