mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-27 13:44:16 +01:00
Fix Magisk file path error.
This commit is contained in:
parent
96f25dc787
commit
a3c9842d68
@ -294,8 +294,8 @@ fi
|
|||||||
if [ -d "$WORK_DIR"/magisk ]; then
|
if [ -d "$WORK_DIR"/magisk ]; then
|
||||||
SYSTEM_SIZE=$(( SYSTEM_SIZE + $(du --apparent-size -sB512 "$WORK_DIR"/magisk/magisk | cut -f1) ))
|
SYSTEM_SIZE=$(( SYSTEM_SIZE + $(du --apparent-size -sB512 "$WORK_DIR"/magisk/magisk | cut -f1) ))
|
||||||
fi
|
fi
|
||||||
if [ -f "$DOWNLOAD_DIR"/magisk.zip ]; then
|
if [ -f "$MAGISK_PATH" ]; then
|
||||||
SYSTEM_SIZE=$(( SYSTEM_SIZE + $(du --apparent-size -sB512 "$DOWNLOAD_DIR"/magisk.zip | cut -f1) ))
|
SYSTEM_SIZE=$(( SYSTEM_SIZE + $(du --apparent-size -sB512 "$MAGISK_PATH" | cut -f1) ))
|
||||||
fi
|
fi
|
||||||
if [ -d "../$ARCH/system" ]; then
|
if [ -d "../$ARCH/system" ]; then
|
||||||
SYSTEM_SIZE=$(( SYSTEM_SIZE + $(du --apparent-size -sB512 "../$ARCH/system" | cut -f1) ))
|
SYSTEM_SIZE=$(( SYSTEM_SIZE + $(du --apparent-size -sB512 "../$ARCH/system" | cut -f1) ))
|
||||||
@ -328,7 +328,7 @@ if [ "$ROOT_SOL" = 'magisk' ] || [ "$ROOT_SOL" = '' ]; then
|
|||||||
sudo chown root:root "$MOUNT_DIR"/sbin
|
sudo chown root:root "$MOUNT_DIR"/sbin
|
||||||
sudo chmod 0700 "$MOUNT_DIR"/sbin
|
sudo chmod 0700 "$MOUNT_DIR"/sbin
|
||||||
sudo cp "$WORK_DIR"/magisk/magisk/* "$MOUNT_DIR"/sbin/
|
sudo cp "$WORK_DIR"/magisk/magisk/* "$MOUNT_DIR"/sbin/
|
||||||
sudo cp "$DOWNLOAD_DIR"/magisk.zip "$MOUNT_DIR"/sbin/magisk.apk
|
sudo cp "$MAGISK_PATH" "$MOUNT_DIR"/sbin/magisk.apk
|
||||||
sudo tee -a "$MOUNT_DIR"/sbin/loadpolicy.sh <<EOF
|
sudo tee -a "$MOUNT_DIR"/sbin/loadpolicy.sh <<EOF
|
||||||
#!/system/bin/sh
|
#!/system/bin/sh
|
||||||
mkdir -p /data/adb/magisk
|
mkdir -p /data/adb/magisk
|
||||||
|
Loading…
Reference in New Issue
Block a user