clean.sh: ensure that files/dirs are writable before deleting them

Fixes permission denials if something in $TERMUX_TOPDIR contains tree with
Golang modules.
This commit is contained in:
Leonid Pliushch 2019-07-04 14:04:26 +03:00
parent d237bd0ee7
commit 1dba788409
1 changed files with 1 additions and 0 deletions

View File

@ -6,4 +6,5 @@ set -e -u
test -f $HOME/.termuxrc && . $HOME/.termuxrc
: ${TERMUX_TOPDIR:="$HOME/.termux-build"}
chmod +w $TERMUX_TOPDIR
rm -Rf /data/* $TERMUX_TOPDIR