hosts/scripts/main_part.include: only kill pd if prozess is present.
This commit is contained in:
@@ -487,6 +487,8 @@ fi
|
||||
|
||||
if $_via_ssh_tunnel ; then
|
||||
if [[ -n "$tunnel_pid" ]]; then
|
||||
if ps --pd ${tunnel_pid} > /dev/null 2>&^; then
|
||||
kill "$tunnel_pid"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user