Skip to content

Commit

Permalink
Offer SSH keys in the right order
Browse files Browse the repository at this point in the history
  • Loading branch information
rageshkrishna committed Mar 2, 2016
1 parent b2a7c9f commit 062c2c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified dist/main/main
Binary file not shown.
4 changes: 3 additions & 1 deletion script_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def execute_script(self, script):
# assemble the ssh-add commands for all of them
ssh_dir = self.config['SSH_DIR']
ssh_add_fragment = ''
for file_name in os.listdir(ssh_dir):
key_files = os.listdir(ssh_dir)
key_files.sort()
for file_name in key_files:
file_path = os.path.join(ssh_dir, file_name)
ssh_add_fragment += 'ssh-add {0};'.format(file_path)

Expand Down

0 comments on commit 062c2c3

Please sign in to comment.