Skip to content

Commit

Permalink
Delete the vpn once disconnected with uniq sort
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinesh Kumar committed Oct 11, 2018
1 parent fe1778d commit 840e5ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lazy-connect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ function _lazy_disconnect() {
end disconnectVpn
disconnectVpn("$vpn_name")
sed "/Connect ${vpn_name}/d" $_lazy_connect_config_dir/vpns
sed "/Disconnect ${vpn_name}/d" $_lazy_connect_config_dir/connected_vpns | sort -u
EOF
sed "/Disconnect ${vpn_name}/d" $_lazy_connect_config_dir/connected_vpns | sort -u > $_lazy_connect_config_dir/connected_vpns
}

function _lazy_connect_update() {
Expand Down

0 comments on commit 840e5ba

Please sign in to comment.