From 5c9bd9cd14e3fed23d1147c4fdcd5460ca76c2b1 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Sun, 16 Jul 2023 06:30:14 -0400 Subject: [PATCH] fix(tools): return code after port forward fails in manage tunnel --- tools/anvil-manage-tunnel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/anvil-manage-tunnel b/tools/anvil-manage-tunnel index 810562d6..33892849 100755 --- a/tools/anvil-manage-tunnel +++ b/tools/anvil-manage-tunnel @@ -203,7 +203,7 @@ sub manage_tunnel $anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => $debug, list => { forward_opt => $forward_opt } }); - $ssh_fh->system({ ssh_opts => [ "-O", $ctl_cmd, $forward_opt ] }); + $ssh_fh->system({ ssh_opts => [ "-O", $ctl_cmd, $forward_opt ] }) or return (1); return (0); }