mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
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
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user