summaryrefslogtreecommitdiffstats
path: root/bashrc/common/ssh-agent-forwarding.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bashrc/common/ssh-agent-forwarding.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bashrc/common/ssh-agent-forwarding.sh b/bashrc/common/ssh-agent-forwarding.sh
index 2d40652..5a6c132 100644
--- a/bashrc/common/ssh-agent-forwarding.sh
+++ b/bashrc/common/ssh-agent-forwarding.sh
@@ -1,8 +1,8 @@
wipe_removed_sockets() {
- TMPFILE=$(mktemp)
-
# cleanup old agent-sockets
if [ -r "${HOME}/.ssh-agent-forwarding" ]; then
+ TMPFILE=$(mktemp)
+
cut -d" " -f2 "${HOME}/.ssh-agent-forwarding" | \
xargs ls -a 2>/dev/null | \
grep -f - "${HOME}/.ssh-agent-forwarding" | \