Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 840e5ba

Browse files
author
Dinesh Kumar
committedOct 11, 2018
Delete the vpn once disconnected with uniq sort
1 parent fe1778d commit 840e5ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎lazy-connect.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,8 @@ function _lazy_disconnect() {
153153
end disconnectVpn
154154
155155
disconnectVpn("$vpn_name")
156-
sed "/Connect ${vpn_name}/d" $_lazy_connect_config_dir/vpns
157-
sed "/Disconnect ${vpn_name}/d" $_lazy_connect_config_dir/connected_vpns | sort -u
158156
EOF
157+
sed "/Disconnect ${vpn_name}/d" $_lazy_connect_config_dir/connected_vpns | sort -u > $_lazy_connect_config_dir/connected_vpns
159158
}
160159

161160
function _lazy_connect_update() {

0 commit comments

Comments
 (0)
Please sign in to comment.