From b7a32e71d098f6169102bd59264558fc45cbd0d2 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 2 May 2026 07:10:18 +0000 Subject: [PATCH] Fix build menu process guard exit --- contrib/agrarian-build-menu.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/agrarian-build-menu.sh b/contrib/agrarian-build-menu.sh index db4acd0f..1fa5c83c 100755 --- a/contrib/agrarian-build-menu.sh +++ b/contrib/agrarian-build-menu.sh @@ -113,8 +113,12 @@ other_user_process_pids() { while IFS= read -r pid; do [[ -n "$pid" ]] || continue owner="$(ps -o user= -p "$pid" 2>/dev/null | awk '{print $1}')" - [[ -n "$owner" && "$owner" != "$current_user" ]] && printf '%s %s\n' "$pid" "$owner" + if [[ -n "$owner" && "$owner" != "$current_user" ]]; then + printf '%s %s\n' "$pid" "$owner" + fi done < <(all_process_pids "$name") + + return 0 } process_cmdline() {