handle full node paths in goose2 kill recipe (#8709)
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
This commit is contained in:
+2
-1
@@ -192,7 +192,8 @@ kill:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
PROC_NAME=$(ps -p "$PID" -o comm= 2>/dev/null) || true
|
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"
|
echo "Process on port $VITE_PORT is '$PROC_NAME', not 'node' — refusing to kill"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user