mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 02:25:28 +00:00
Proper support for Magisk Manager installation
This commit is contained in:
parent
4d61e5e319
commit
590e7f7724
@ -110,8 +110,15 @@ cd $cwd
|
|||||||
# Detect whether running as root
|
# Detect whether running as root
|
||||||
id | grep "uid=0" >/dev/null 2>&1 && ROOT=true || ROOT=false
|
id | grep "uid=0" >/dev/null 2>&1 && ROOT=true || ROOT=false
|
||||||
|
|
||||||
|
if [ -z $SOURCEDMODE ]; then
|
||||||
# Switch to the location of the script file
|
# Switch to the location of the script file
|
||||||
[ -z $SOURCEDMODE ] && cd "`dirname_wrap "${BASH_SOURCE:-$0}"`"
|
cd "`dirname_wrap "${BASH_SOURCE:-$0}"`"
|
||||||
|
# Load utility functions
|
||||||
|
. ./util_functions.sh
|
||||||
|
# Detect current status
|
||||||
|
mount_partitions
|
||||||
|
fi
|
||||||
|
|
||||||
chmod -R 755 .
|
chmod -R 755 .
|
||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user