File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/commonMain/kotlin/app/revanced/library/installation/installer Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,14 @@ internal object Constants {
55
55
chcon u:object_r:apk_data_file:s0 ${' $' } base_path
56
56
57
57
# Mount using Magisk mirror, if available.
58
- MAGISKTMP="$( magisk --path )" || MAGISKTMP=/sbin
59
- MIRROR="${' $' } MAGISKTMP/.magisk/mirror"
60
- if [ -z "$(ls -A "${' $' } MIRROR" 2>/dev/null)" ]; then
61
- MIRROR=""
58
+ if command -v magisk &> /dev/null; then
59
+ MAGISKTMP="${' $' } (magisk --path)" || MAGISKTMP=/sbin
60
+ MIRROR="${' $' } MAGISKTMP/.magisk/mirror"
61
+ if [ -z "$(ls -A "${' $' } MIRROR" 2>/dev/null)" ]; then
62
+ MIRROR=""
63
+ fi
62
64
fi
65
+
63
66
mount -o bind ${' $' } MIRROR${' $' } base_path ${' $' } stock_path
64
67
65
68
# Kill the app to force it to restart the mounted APK in case it's currently running.
You can’t perform that action at this time.
0 commit comments