Browse Source

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

Fixes permission denials if something in $TERMUX_TOPDIR contains tree with
Golang modules.
emacs-27
Leonid Plyushch 5 years ago
parent
commit
e30ee25fb9
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 1
      clean.sh

1
clean.sh

@ -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

Loading…
Cancel
Save