Commit 590e7f77 authored by topjohnwu's avatar topjohnwu

Proper support for Magisk Manager installation

parent 4d61e5e3
...@@ -110,8 +110,15 @@ cd $cwd ...@@ -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
# Switch to the location of the script file if [ -z $SOURCEDMODE ]; then
[ -z $SOURCEDMODE ] && cd "`dirname_wrap "${BASH_SOURCE:-$0}"`" # 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 . chmod -R 755 .
########################################################################################## ##########################################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment