From 4bed7fba0f0caf06c37886da19a539c88265eb1c Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@robotics.uk.to> Date: Sat, 12 Jan 2019 18:00:46 +0000 Subject: [PATCH] aux is needed --- src/freedombone-installer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-installer b/src/freedombone-installer index ce81c1d2b..c4384b835 100755 --- a/src/freedombone-installer +++ b/src/freedombone-installer @@ -3584,10 +3584,10 @@ function update_app_settings { # If the freedombone command is already running then kill its process #shellcheck disable=SC2009 -install_process=$(ps a | grep '/usr/local/bin/freedombone -c' | grep -v 'grep') +install_process=$(ps aux | grep '/usr/local/bin/freedombone -c' | grep -v 'grep') if [ "$install_process" ]; then if [[ "$install_process" != *'grep'* ]]; then - install_pid=$(echo "$install_process" | awk -F ' ' '{print $1}') + install_pid=$(echo "$install_process" | awk -F ' ' '{print $2}') if [ "$install_pid" ]; then #shellcheck disable=SC2086 pkill -9 $install_pid -- GitLab