Skip to content

Commit

Permalink
revert for ssh agent
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Sep 9, 2024
1 parent 6c8a640 commit 0c52609
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/vortex/setup-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ fi
note "Using SSH key file ${file}."
export "${file_var}=${file}"

if [ -z "${SSH_AGENT_PID:-}" ] || ! ps -p "${SSH_AGENT_PID}"; then
note "Starting SSH agent."
eval "$(ssh-agent)"
if [ -z "${SSH_AGENT_PID:-}" ]; then
if ! ps aux | grep "[s]sh-agent" | awk '{print $2}' >/dev/null; then
note "Starting SSH agent."
eval "$(ssh-agent)"
fi
fi

if ssh-add -l | grep -q "${file}"; then
Expand Down

1 comment on commit 0c52609

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.