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:
parent
955a7b7c5c
commit
d5b4dddff0
@ -1,8 +1,7 @@
|
|||||||
TERMUX_PKG_HOMEPAGE=https://termux.com/
|
TERMUX_PKG_HOMEPAGE=https://termux.com/
|
||||||
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
|
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
|
||||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||||
TERMUX_PKG_VERSION=0.83
|
TERMUX_PKG_VERSION=0.84
|
||||||
TERMUX_PKG_REVISION=1
|
|
||||||
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
||||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||||
TERMUX_PKG_ESSENTIAL=true
|
TERMUX_PKG_ESSENTIAL=true
|
||||||
|
@ -36,6 +36,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Erasing '@TERMUX_PREFIX@'..."
|
echo "Erasing '@TERMUX_PREFIX@'..."
|
||||||
|
/system/bin/chmod -R 700 "@TERMUX_PREFIX@" >/dev/null 2>&1
|
||||||
/system/bin/rm -rf "@TERMUX_PREFIX@"
|
/system/bin/rm -rf "@TERMUX_PREFIX@"
|
||||||
echo "Done. You need to close Termux application now."
|
echo "Done. You need to close Termux application now."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user