From f9d7de4107fcebf54dbd37917b3a208507a234dc Mon Sep 17 00:00:00 2001 From: nAnderYang Date: Wed, 8 Apr 2026 10:14:12 +0800 Subject: [PATCH 1/2] findNodeProcess compatible bosybox ps command --- src/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper.ts b/src/helper.ts index 7c57cdb..c263ff4 100644 --- a/src/helper.ts +++ b/src/helper.ts @@ -17,7 +17,7 @@ export async function findNodeProcess(filterFn?: FilterFunction): Promise/dev/null 2>&1 && ps --help 2>&1 | grep -q BusyBox && ps -o "pid,args" || ps -wweo "pid,args"'; const stdio = await runScript(command, { stdio: 'pipe' }); const processList = stdio.stdout!.toString().split('\n') .reduce((arr, line) => { From 090f39199a4543173e310cc7ed4e279a27f958c4 Mon Sep 17 00:00:00 2001 From: nAnderYang Date: Thu, 16 Apr 2026 09:10:02 +0800 Subject: [PATCH 2/2] suggest parameter error busybox no parameter `-w` and `-A` Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper.ts b/src/helper.ts index c263ff4..bce6cf2 100644 --- a/src/helper.ts +++ b/src/helper.ts @@ -17,7 +17,7 @@ export async function findNodeProcess(filterFn?: FilterFunction): Promise/dev/null 2>&1 && ps --help 2>&1 | grep -q BusyBox && ps -o "pid,args" || ps -wweo "pid,args"'; + 'command -v ps >/dev/null 2>&1 && ps --help 2>&1 | grep -q BusyBox && ps -w -A -o pid,args || ps -wweo "pid,args"'; const stdio = await runScript(command, { stdio: 'pipe' }); const processList = stdio.stdout!.toString().split('\n') .reduce((arr, line) => {