Skip to content

Commit e8c2925

Browse files
author
Dinesh Kumar
committed
Delete the vpn once disconnected with uniq sort
1 parent 4ce44a4 commit e8c2925

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
@@ -154,9 +154,8 @@ function _lazy_disconnect() {
154154
end disconnectVpn
155155
156156
disconnectVpn("$vpn_name")
157-
sed "/Connect ${vpn_name}/d" $_lazy_connect_config_dir/vpns
158-
sed "/Disconnect ${vpn_name}/d" $_lazy_connect_config_dir/connected_vpns | sort -u
159157
EOF
158+
sed "/Disconnect ${vpn_name}/d" $_lazy_connect_config_dir/connected_vpns | sort -u > $_lazy_connect_config_dir/connected_vpns
160159
}
161160

162161
function _lazy_connect_update() {

0 commit comments

Comments
 (0)