scripts: fix addon.d using $TMPDIR

/data/adb/magisk/addon.d.sh: cd: line 73: can't cd to /dev/tmp: no such file or directory
This commit is contained in:
osm0sis 2020-08-18 23:04:39 -03:00 committed by John Wu
parent 34450cdddd
commit 6d749a58c6

View File

@ -70,6 +70,7 @@ main() {
fi
# Ensure we aren't in /tmp/addon.d anymore (since it's been deleted by addon.d)
mkdir -p $TMPDIR
cd $TMPDIR
$BOOTMODE || recovery_actions