mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 03:37:58 +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
|
||||
id | grep "uid=0" >/dev/null 2>&1 && ROOT=true || ROOT=false
|
||||
|
||||
# Switch to the location of the script file
|
||||
[ -z $SOURCEDMODE ] && cd "`dirname_wrap "${BASH_SOURCE:-$0}"`"
|
||||
if [ -z $SOURCEDMODE ]; then
|
||||
# Switch to the location of the script file
|
||||
cd "`dirname_wrap "${BASH_SOURCE:-$0}"`"
|
||||
# Load utility functions
|
||||
. ./util_functions.sh
|
||||
# Detect current status
|
||||
mount_partitions
|
||||
fi
|
||||
|
||||
chmod -R 755 .
|
||||
|
||||
##########################################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user