actuall close connections
This commit is contained in:
parent
aa0dbe4d05
commit
d650d80a6f
1 changed files with 4 additions and 2 deletions
|
@ -38,8 +38,10 @@ proc killCmd() =
|
||||||
let controllers = collectControllers()
|
let controllers = collectControllers()
|
||||||
if controllers.len == 0: quit 0
|
if controllers.len == 0: quit 0
|
||||||
for c in controllers:
|
for c in controllers:
|
||||||
echo bbfmt"removing file: [b]{c}"
|
let host = c.lastPathPart().split("-")[2]
|
||||||
removeFile c
|
let code = exitSsh(host)
|
||||||
|
if code != 0:
|
||||||
|
quit $bb"[red][[Error]failed to exit connection for host: " & host
|
||||||
|
|
||||||
proc show() =
|
proc show() =
|
||||||
## show active connections
|
## show active connections
|
||||||
|
|
Loading…
Reference in a new issue