From d177c4c776be2f9e7adf044660827f3405ec1905 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Fri, 30 May 2025 19:03:12 +0200 Subject: [PATCH] Add useful comment Co-authored-by: Dan Schaper Signed-off-by: yubiuser --- automated install/basic-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 94ef8002..6cc69008 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -235,7 +235,9 @@ is_pid1() { # Checks to see if the given command runs as PID 1 local is_pid1="$1" - ps -p 1 -o comm= | grep -q "${is_pid1}" + # select PID 1, format output to show only CMD column without header + # quietly grep for a match on the function passed parameter + ps --pid 1 --format comm= | grep -q "${is_pid1}" } # Compatibility