From 7bc8d991dc44a1e9976a1e4d09f340165c91df27 Mon Sep 17 00:00:00 2001 From: chiteroman Date: Fri, 25 Oct 2024 00:11:35 +0200 Subject: [PATCH] Check if app is installed --- module/post-fs-data.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/module/post-fs-data.sh b/module/post-fs-data.sh index afac500..17ec0b1 100644 --- a/module/post-fs-data.sh +++ b/module/post-fs-data.sh @@ -17,6 +17,8 @@ if [ -d "$SNFix" ]; then touch "$SNFix"/remove fi +rm -rf "$MODPATH"/system + # Uninstall conflict apps APPS=" /system/app/EliteDevelopmentModule @@ -28,12 +30,14 @@ APPS=" " for APP in $APPS; do - HIDEPATH="$MODPATH$APP" - mkdir -p "$HIDEPATH" - if [ "$KSU" = "true" ] || [ "$APATCH" = "true" ]; then - setfattr -n trusted.overlay.opaque -v y "$HIDEPATH" - else - touch "$HIDEPATH"/.replace + if [ -d "$APP" ]; then + HIDEPATH="$MODPATH$APP" + mkdir -p "$HIDEPATH" + if [ "$KSU" = "true" ] || [ "$APATCH" = "true" ]; then + setfattr -n trusted.overlay.opaque -v y "$HIDEPATH" + else + touch "$HIDEPATH"/.replace + fi fi done