Skip to content
Snippets Groups Projects
Commit 006e58e1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Try apps list first

parent 615aaf9b
No related branches found
No related tags found
No related merge requests found
......@@ -59,13 +59,9 @@ function item_in_array {
function app_is_installed {
app_name="$1"
if [ ! -f $COMPLETION_FILE ]; then
echo "0"
return
fi
if [ -f /usr/share/${PROJECT_NAME}/installed.txt ]; then
if ! grep -Fxq "install_${app_name}" /usr/share/${PROJECT_NAME}/installed.txt; then
INSTALLED_APPS_LIST=/usr/share/${PROJECT_NAME}/installed.txt
if [ -f $INSTALLED_APPS_LIST ]; then
if ! grep -Fxq "install_${app_name}" $INSTALLED_APPS_LIST; then
echo "0"
else
echo "1"
......@@ -73,6 +69,11 @@ function app_is_installed {
return
fi
if [ ! -f $COMPLETION_FILE ]; then
echo "0"
return
fi
if ! grep -Fxq "install_${app_name}" $COMPLETION_FILE; then
echo "0"
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment