Commit 0b42f8a1 authored by nimrod's avatar nimrod
Browse files

Fix!

parent 9c5bbeb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ set -eu
host="$1"
localsocket="$HOME/.ssh/docker_$host.sock"

[ ! -e "$localsocket" ] || lsof -f "$localsocket" >/dev/null || rm "$localsocket"
[ ! -e "$localsocket" ] || lsof -t "$localsocket" >/dev/null || rm "$localsocket"

forward "$host" "$localsocket:/var/run/docker.sock" > /dev/null 2>&1