From f1b7cc4daf2880a32cd8f7bf76cd355b387fa2bd Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Sat, 19 Nov 2016 19:31:59 +0000
Subject: [PATCH] Detect installed apps

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

diff --git a/src/freedombone-utils-selector b/src/freedombone-utils-selector
index f45689b67..bc01d6810 100755
--- a/src/freedombone-utils-selector
+++ b/src/freedombone-utils-selector
@@ -336,7 +336,7 @@ function detect_installed_apps {
     do
         app_name=$(echo "${filename}" | awk -F '-app-' '{print $2}')
 
-        if [[ $(app_is_installed $app_name) ]]; then
+        if [[ $(app_is_installed $app_name) == "1" ]]; then
             item_in_array "${app_name}" "${APPS_AVAILABLE[@]}"
             if [[ $? != 0 ]]; then
                 variants_list=$(app_variants $filename)
-- 
GitLab