From 58914bada69dacbb02ed45fc2b5e6dd228b7d000 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Tue, 8 Sep 2020 21:55:28 +0200 Subject: [PATCH] CommonInstaller: - simplify install_apps() - who cares whether we override a ROM app? --- CommonInstaller | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CommonInstaller b/CommonInstaller index eec3227..a3c4b73 100644 --- a/CommonInstaller +++ b/CommonInstaller @@ -1201,11 +1201,8 @@ install_apps () { print_info " << with applications" APP_STRING=" <<>" - INSTALL_APPS=$(grep -v "^#" "${cfg_apps}") - for app in ${INSTALL_APPS}; do - if [[ -d /system/app/${app} && ! -d ${MAGISKBASE}/modules/${MODID}/system/app/${app} ]]; then - print_info " ++ app: ${app} already provided by ROM" - elif [[ -d "${INSTALLER}/system/app/${app}" ]]; then + grep -v "^#" "${cfg_apps}" | while read app; do + if [ -d "${INSTALLER}/system/app/${app}" ]; then print_info " ++ ${app}" nanodroid_install_apk ${app} else print_info " ++ app: ${app} missing"