Skip to content

Commit 8f49853

Browse files
authored
Update update-binary
1 parent ee78ea9 commit 8f49853

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

META-INF/com/google/android/update-binary

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ process_all_modules() {
117117
fi
118118

119119
# Check Magisk modules
120-
if [ -d "/data/adb/modules" ]; then
120+
if [ -d "/data/adb/modules" ] && find "/data/adb/modules" -mindepth 1 -maxdepth 1 -type d | grep -q .; then
121121
ui_print "- Found Magisk modules"
122122
create_disable_files "/data/adb/modules"
123123
found_modules=true
124-
fi
124+
fi
125125

126126
if ! $found_modules; then
127127
ui_print "! No modules found in any location"

0 commit comments

Comments
 (0)