hosts/scripts/main_part.include: fix error at killing pid.
This commit is contained in:
@@ -487,7 +487,8 @@ fi
|
|||||||
|
|
||||||
if $_via_ssh_tunnel ; then
|
if $_via_ssh_tunnel ; then
|
||||||
if [[ -n "$tunnel_pid" ]]; 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"
|
kill "$tunnel_pid"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user