Changed to real Path

This commit is contained in:
NewBit
2021-05-23 20:41:15 +02:00
parent 31b9301239
commit bdda04fd53
+3
View File
@@ -687,6 +687,9 @@ UpdateBusyBoxToScript() {
PrepBusyBoxAndMagisk() {
echo "[-] Switch to the location of the script file"
BASEDIR="`getdir "${BASH_SOURCE:-$0}"`"
if [[ "$BASEDIR" == "." ]]; then
BASEDIR=$(pwd)
fi
TMPDIR=$BASEDIR/tmp
BB=$BASEDIR/busybox
MZ=$BASEDIR/Magisk.zip