[core] Use util function to check riru version (#433)
This commit is contained in:
parent
e2b15b05dd
commit
8bc0991275
|
|
@ -33,8 +33,8 @@ MODDIR=${0%/*}
|
|||
MAGISK_VERSION=$(magisk -v)
|
||||
MAGISK_VER_CODE=$(magisk -V)
|
||||
|
||||
[ ! -f "$MODDIR/riru.sh" ] && exit 1
|
||||
. $MODDIR/riru.sh
|
||||
[ ! -f /data/adb/riru/util_functions.sh ] && exit 1
|
||||
. /data/adb/riru/util_functions.sh
|
||||
|
||||
LSPD_VERSION=$(grep_prop version "${MODDIR}/module.prop")
|
||||
LSPD_VERSIONCODE=$(grep_prop versionCode "${MODDIR}/module.prop")
|
||||
|
|
|
|||
Loading…
Reference in New Issue