From 4de0b675f19aa9cc2839f1be76a74268b84ed8c9 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 18 Jul 2023 01:17:13 -0400 Subject: [PATCH] fix(tools): don't find when tunnel list doesn't exist --- tools/striker-manage-vnc-pipes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/striker-manage-vnc-pipes b/tools/striker-manage-vnc-pipes index f92b4c9c..c19af1ad 100755 --- a/tools/striker-manage-vnc-pipes +++ b/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);