From bcd762e8ddc9931d9edc2c64016e671d50da267a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 5 Jul 2016 16:42:50 +0100 Subject: [PATCH] Check that completion file exists --- src/freedombone-selector | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-selector b/src/freedombone-selector index 545fe5f9..ef560dfc 100755 --- a/src/freedombone-selector +++ b/src/freedombone-selector @@ -59,6 +59,10 @@ function item_in_array { function app_is_installed { app_name="$1" + if [ ! -f $COMPLETION_FILE ]; then + echo "0" + fi + if ! grep -Fxq "install_${app_name}" $COMPLETION_FILE; then echo "0" else