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:
parent
d237bd0ee7
commit
1dba788409
1
clean.sh
1
clean.sh
|
@ -6,4 +6,5 @@ set -e -u
|
||||||
test -f $HOME/.termuxrc && . $HOME/.termuxrc
|
test -f $HOME/.termuxrc && . $HOME/.termuxrc
|
||||||
: ${TERMUX_TOPDIR:="$HOME/.termux-build"}
|
: ${TERMUX_TOPDIR:="$HOME/.termux-build"}
|
||||||
|
|
||||||
|
chmod +w $TERMUX_TOPDIR
|
||||||
rm -Rf /data/* $TERMUX_TOPDIR
|
rm -Rf /data/* $TERMUX_TOPDIR
|
||||||
|
|
Loading…
Reference in New Issue