handle full node paths in goose2 kill recipe (#8709)

Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
This commit is contained in:
morgmart
2026-04-20 17:33:36 -07:00
committed by GitHub
parent 8eda6fdabc
commit 93299b513c
+2 -1
View File
@@ -192,7 +192,8 @@ kill:
fi
PROC_NAME=$(ps -p "$PID" -o comm= 2>/dev/null) || true
if [[ "$PROC_NAME" != "node" ]]; then
PROC_BASENAME="${PROC_NAME##*/}"
if [[ "$PROC_BASENAME" != "node" ]]; then
echo "Process on port $VITE_PORT is '$PROC_NAME', not 'node' — refusing to kill"
exit 1
fi