Skip to content

Commit

Permalink
Merge pull request matryer#1487 from MattHardcastle/dedup-hosts-in-ne…
Browse files Browse the repository at this point in the history
…t-ssh-tunnel

Deduplicate hosts in ssh-tunnel
  • Loading branch information
matryer authored Dec 11, 2020
2 parents b7627ed + bf93671 commit 17f0178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Network/ssh-tunnel.1s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function hosts() {
$1 == "DynamicForward" || $1 == "LocalForward" {
print host;
}
' "$1"
' "$1" | uniq
}

for h in $(hosts ~/.ssh/config); do
Expand Down

0 comments on commit 17f0178

Please sign in to comment.