From 1c1fa6379355a03b5b6592da4d96032a05554733 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Thu, 1 Sep 2022 08:37:33 +0200 Subject: [PATCH] start: remove SSH socket if present --- utils/bin/start | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/bin/start b/utils/bin/start index 4b782df..88fc17e 100644 --- a/utils/bin/start +++ b/utils/bin/start @@ -44,6 +44,7 @@ require npiperelay # Forward SSH Agent requests from withitn WSL to OpenSSH for Windows, based on: # https://stuartleeks.com/posts/wsl-ssh-key-forward-to-windows/ export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock +[ -S "$SSH_AUTH_SOCK" ] && rm "$SSH_AUTH_SOCK" socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork EXEC:"npiperelay -ei -s //./pipe/openssh-ssh-agent",nofork & exec tmux new-session -A -t main "$@"