fix(tools): always end with nice exit in open-shh-tunnel

main
Tsu-ba-me 2 years ago
parent 8da4033607
commit 324bbaf141
  1. 4
      tools/striker-open-ssh-tunnel

@ -95,8 +95,6 @@ sub close_ssh_tunnel
message => "SSH tunnel disconnected." message => "SSH tunnel disconnected."
} }); } });
} }
$anvil->nice_exit({ exit_code => 0 });
} }
$SIG->{INT} = \&close_ssh_tunnel; $SIG->{INT} = \&close_ssh_tunnel;
@ -134,3 +132,5 @@ while($is_ssh_tunnel_alive)
} }
close_ssh_tunnel(); close_ssh_tunnel();
$anvil->nice_exit({ exit_code => 0 });

Loading…
Cancel
Save