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 {
5555 chcon u:object_r:apk_data_file:s0 ${' $' } base_path
5656
5757 # 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
6264 fi
65+
6366 mount -o bind ${' $' } MIRROR${' $' } base_path ${' $' } stock_path
6467
6568 # 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