From 1dba7884095cc373b2ec86130cf4bafe65e6d799 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Thu, 4 Jul 2019 14:04:26 +0300 Subject: [PATCH] clean.sh: ensure that files/dirs are writable before deleting them Fixes permission denials if something in $TERMUX_TOPDIR contains tree with Golang modules. --- clean.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/clean.sh b/clean.sh index ac1d7b8bb..cd3266560 100755 --- a/clean.sh +++ b/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