From 5df87179c85a2fd68e15cca26cd0ba7d05df9102 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 2 Mar 2026 09:11:32 +0100 Subject: [PATCH] hosts/scripts/main_part.include: fix error at killing pid. --- hosts/scripts/main_part.include | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/scripts/main_part.include b/hosts/scripts/main_part.include index 2791bc1..f1feba8 100644 --- a/hosts/scripts/main_part.include +++ b/hosts/scripts/main_part.include @@ -487,7 +487,8 @@ fi if $_via_ssh_tunnel ; then if [[ -n "$tunnel_pid" ]]; then - if ps --pd ${tunnel_pid} > /dev/null 2>&^; then + if ps --pd ${tunnel_pid} > /dev/null 2>&1; then + echo "target Host: $target_host - Kill tunnel PID $tunnel_pid" kill "$tunnel_pid" fi fi