Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 13, 2023
1 parent 5992ae4 commit 1feba72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,15 @@ def setup(self, _=None):

# Add the key to the ssh-agent.
self.add_key_to_ssh_agent()

self.output.value = "The keys were updated 👍"

def add_key_to_ssh_agent(self):
"""Add the key to the ssh-agent."""
subprocess.run(
["ssh-add", "-t", "1d", str(self.private_key_file)], encoding="utf-8", check=True,
["ssh-add", "-t", "1d", str(self.private_key_file)],
encoding="utf-8",
check=True,
)

def get_keys(self):
Expand Down

0 comments on commit 1feba72

Please sign in to comment.