Skip to content

Commit f92bf85

Browse files
committed
fix: remove .ssh-agent-out file later in the script
1 parent 96b50e3 commit f92bf85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/configure-ssh.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ fi
4646

4747
nohup ssh-agent -D > .ssh-agent-out &
4848
eval "$( (tail -f .ssh-agent-out &) | sed '/echo Agent pid/ q')"
49-
rm .ssh-agent-out
5049

5150
# Ensure that the ssh socket has access the the required keys. Notably needed for the nix daemon (see below)
5251
ssh-add "$HOME/.ssh/id_$INPUT_SSH_KEY_FORMAT"
@@ -73,3 +72,6 @@ elif [[ "$RUNNER_OS" == "macOS" ]]; then
7372
-string "$SSH_AUTH_SOCK" \
7473
/Library/LaunchDaemons/org.nixos.nix-daemon.plist
7574
fi
75+
76+
# cleanup
77+
rm .ssh-agent-out

0 commit comments

Comments
 (0)