From 477ff12cde9ebd0857180120175865d3e6274835 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Tue, 27 Jul 2021 17:37:22 +0800 Subject: [PATCH] print sepolicy rules dir --- scripts/util_functions.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/util_functions.sh b/scripts/util_functions.sh index 3ba12af11..d24895c8d 100644 --- a/scripts/util_functions.sh +++ b/scripts/util_functions.sh @@ -628,7 +628,15 @@ copy_sepolicy_rules() { elif grep -q ' /mnt/vendor/persist ' /proc/mounts; then RULESDIR=/mnt/vendor/persist/magisk else - return + ui_print "- Unable to find sepolicy rules dir" + return 1 + fi + + if [ -d ${RULESDIR%/magisk} ]; then + ui_print "- Sepolicy rules dir is ${RULESDIR%/magisk}" + else + ui_print "- Sepolicy rules dir ${RULESDIR%/magisk} not found" + return 1 fi # Copy all enabled sepolicy.rule