From d5b4dddff04a3b074fbb28946f3cea135d16d680 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Tue, 21 Jul 2020 16:01:45 +0300 Subject: [PATCH] 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. --- packages/termux-tools/build.sh | 3 +-- packages/termux-tools/termux-reset | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/termux-tools/build.sh b/packages/termux-tools/build.sh index 3fb6d32e8..43324d5dd 100644 --- a/packages/termux-tools/build.sh +++ b/packages/termux-tools/build.sh @@ -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 diff --git a/packages/termux-tools/termux-reset b/packages/termux-tools/termux-reset index 65c45658e..297d0c3fd 100755 --- a/packages/termux-tools/termux-reset +++ b/packages/termux-tools/termux-reset @@ -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."