fix(tools): don't find when tunnel list doesn't exist

main
Tsu-ba-me 1 year ago committed by digimer
parent 2eb96f9d10
commit 4de0b675f1
  1. 2
      tools/striker-manage-vnc-pipes

@ -234,7 +234,7 @@ sub find_tunnels
my $debug = $parameters->{debug} || 3;
my $tunnel_ls_path = $parameters->{tunnel_ls_path};
return (1) if (not defined $tunnel_ls_path);
return (1) if ( (not defined $tunnel_ls_path) || (not -e $tunnel_ls_path) );
open(my $tunnel_ls_fh, "< :encoding(UTF-8)", $tunnel_ls_path) or return (1);

Loading…
Cancel
Save