From 2d763f3282e0e74a84b5a4ddc340e8367a9890a0 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Sat, 12 Jan 2019 18:17:21 +0000
Subject: [PATCH] Simplify

---
 src/freedombone-installer | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedombone-installer b/src/freedombone-installer
index 1e21d9b49..23a47b5f4 100755
--- a/src/freedombone-installer
+++ b/src/freedombone-installer
@@ -3172,7 +3172,7 @@ function cancel_app_installs {
     if [ -f "$cancel_install_file" ]; then
         #shellcheck disable=SC2009
         p_str=$(ps aux | grep 'addremove-base' | grep -v grep)
-        if [[ "$p_str" == *'/bin/bash '* ]]; then
+        if [[ "$p_str" == *'bash'* ]]; then
             kill_pid=$(echo "$p_str" | awk -F ' ' '{print $2}')
             if [ "$kill_pid" ]; then
 
-- 
GitLab