Try apps list first
This commit is contained in:
parent
615aaf9b1f
commit
006e58e1de
|
@ -59,13 +59,9 @@ function item_in_array {
|
||||||
|
|
||||||
function app_is_installed {
|
function app_is_installed {
|
||||||
app_name="$1"
|
app_name="$1"
|
||||||
if [ ! -f $COMPLETION_FILE ]; then
|
INSTALLED_APPS_LIST=/usr/share/${PROJECT_NAME}/installed.txt
|
||||||
echo "0"
|
if [ -f $INSTALLED_APPS_LIST ]; then
|
||||||
return
|
if ! grep -Fxq "install_${app_name}" $INSTALLED_APPS_LIST; then
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f /usr/share/${PROJECT_NAME}/installed.txt ]; then
|
|
||||||
if ! grep -Fxq "install_${app_name}" /usr/share/${PROJECT_NAME}/installed.txt; then
|
|
||||||
echo "0"
|
echo "0"
|
||||||
else
|
else
|
||||||
echo "1"
|
echo "1"
|
||||||
|
@ -73,6 +69,11 @@ function app_is_installed {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f $COMPLETION_FILE ]; then
|
||||||
|
echo "0"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
if ! grep -Fxq "install_${app_name}" $COMPLETION_FILE; then
|
if ! grep -Fxq "install_${app_name}" $COMPLETION_FILE; then
|
||||||
echo "0"
|
echo "0"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue