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 77cb845 commit 49b8daf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ jobs:

timeout-minutes: 30

- name: Setup tmate session
if: always()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 5
with:
detached: true
# - name: Setup tmate session
# if: always()
# uses: mxschmitt/action-tmate@v3
# timeout-minutes: 5
# with:
# detached: true
2 changes: 1 addition & 1 deletion scripts/vortex/setup-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ fi
note "Using SSH key file ${file}."
export "${file_var}=${file}"

if [ -z "${SSH_AGENT_PID:-}" ]; then
if [ -z "${SSH_AGENT_PID:-}" ] || ! ps -p "$SSH_AGENT_PID"; then
note "Starting SSH agent."
eval "$(ssh-agent)"
fi
Expand Down

0 comments on commit 49b8daf

Please sign in to comment.