Skip to content

Commit

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

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
if [ "$(ps ax | grep -c "[s]sh-agent")" -eq 0 ]; then
note "Starting SSH agent."
eval "$(ssh-agent)"
fi

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

1 comment on commit e814827

@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.