Minor changes

This commit is contained in:
Howard Wu 2022-09-10 14:58:18 +08:00
parent bd698e1f96
commit 2c3240a7ee
2 changed files with 1 additions and 4 deletions

View File

@ -29,8 +29,7 @@ if [ "$HOST_ARCH" != "x86_64" ] && [ "$HOST_ARCH" != "aarch64" ]; then
fi fi
cd "$(dirname "$0")" || exit 1 cd "$(dirname "$0")" || exit 1
trap umount_clean EXIT trap umount_clean EXIT
PARENT_DIR="$(dirname "$PWD")" # export TMPDIR=$(dirname "$PWD")/WORK_DIR_
# export TMPDIR=$PARENT_DIR/WORK_DIR_
if [ "$TMPDIR" ] && [ ! -d "$TMPDIR" ]; then if [ "$TMPDIR" ] && [ ! -d "$TMPDIR" ]; then
mkdir -p "$TMPDIR" mkdir -p "$TMPDIR"
fi fi

View File

@ -21,8 +21,6 @@
# DEBUG=--debug # DEBUG=--debug
# CUSTOM_MAGISK=--magisk-custom # CUSTOM_MAGISK=--magisk-custom
DOWNLOAD_DIR=../download
if [ ! "$BASH_VERSION" ]; then if [ ! "$BASH_VERSION" ]; then
echo "Please do not use sh to run this script, just execute it directly" 1>&2 echo "Please do not use sh to run this script, just execute it directly" 1>&2
exit 1 exit 1