Skip to content

Commit

Permalink
SSH_AGENT_PID
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Sep 7, 2024
1 parent 948423e commit 003b27b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/vortex/setup-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ note "Using SSH key file ${file}."
export "${file_var}=${file}"

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

0 comments on commit 003b27b

Please sign in to comment.