Skip to content

Commit

Permalink
clean.sh: ensure that files/dirs are writable before deleting them
Browse files Browse the repository at this point in the history
Fixes permission denials if something in $TERMUX_TOPDIR contains tree with
Golang modules.
  • Loading branch information
Leonid Pliushch committed Jul 4, 2019
1 parent d237bd0 commit 1dba788
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1dba788

Please sign in to comment.