The mirrored app doesn't need to be installed, but should have a script
This commit is contained in:
parent
bd597a933a
commit
30fb08731e
|
@ -128,14 +128,16 @@ function update_installed_apps_repos {
|
||||||
|
|
||||||
# only deal with a single app
|
# only deal with a single app
|
||||||
if [ $SYNC_SINGLE_APP ]; then
|
if [ $SYNC_SINGLE_APP ]; then
|
||||||
if [[ "$(app_is_installed ${SYNC_SINGLE_APP})" == "1" ]]; then
|
filename=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${SYNC_SINGLE_APP}
|
||||||
filename=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${SYNC_SINGLE_APP}
|
if [ ! -f $filename ]; then
|
||||||
APP_REPOS=($(cat ${MAIN_COMMAND} $filename | grep "_REPO=\"" | grep -v "(cat " | uniq -u | sed 's|${PROJECT_NAME}|'"${PROJECT_NAME}"'|g'))
|
echo $"The app $SYNC_SINGLE_APP was not found"
|
||||||
for line in "${APP_REPOS[@]}"
|
exit 36822
|
||||||
do
|
|
||||||
INSTALLED_APPS_REPOS+=("${line}")
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
APP_REPOS=($(cat ${MAIN_COMMAND} $filename | grep "_REPO=\"" | grep -v "(cat " | uniq -u | sed 's|${PROJECT_NAME}|'"${PROJECT_NAME}"'|g'))
|
||||||
|
for line in "${APP_REPOS[@]}"
|
||||||
|
do
|
||||||
|
INSTALLED_APPS_REPOS+=("${line}")
|
||||||
|
done
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue