termux-tools: termux-reset: ensure that $PREFIX is RWX before deleting

Set RWX permissions recursively on $PREFIX before deleting it. This
is needed to ensure that all files and directories can be deleted
by `rm`.

However this may not work if permissions were messed up with root.
This commit is contained in:
Leonid Pliushch 2020-07-21 16:01:45 +03:00
parent 955a7b7c5c
commit d5b4dddff0
2 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://termux.com/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_VERSION=0.83
TERMUX_PKG_REVISION=1
TERMUX_PKG_VERSION=0.84
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_ESSENTIAL=true

View File

@ -36,6 +36,7 @@ else
fi
echo "Erasing '@TERMUX_PREFIX@'..."
/system/bin/chmod -R 700 "@TERMUX_PREFIX@" >/dev/null 2>&1
/system/bin/rm -rf "@TERMUX_PREFIX@"
echo "Done. You need to close Termux application now."