setup_build_folders, clean.sh: don't fail if chmod fails

For some reason chmod +w -R returns an error when building on
device. Lets not fail build when this happens.
This commit is contained in:
Maxython 2021-11-05 22:04:07 +01:00 committed by Henrik Grimler
parent bb45eeefc7
commit d3556570a5
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ fi
fi fi
if [ -d "$TERMUX_TOPDIR" ]; then if [ -d "$TERMUX_TOPDIR" ]; then
chmod +w -R "$TERMUX_TOPDIR" chmod +w -R "$TERMUX_TOPDIR" || true
fi fi
if $TERMUX_ON_DEVICE_BUILD; then if $TERMUX_ON_DEVICE_BUILD; then

View File

@ -2,8 +2,8 @@ termux_step_setup_build_folders() {
# Following directories may contain files with read-only # Following directories may contain files with read-only
# permissions which makes them undeletable. We need to fix # permissions which makes them undeletable. We need to fix
# that. # that.
[ -d "$TERMUX_PKG_BUILDDIR" ] && chmod +w -R "$TERMUX_PKG_BUILDDIR" [ -d "$TERMUX_PKG_BUILDDIR" ] && chmod +w -R "$TERMUX_PKG_BUILDDIR" || true
[ -d "$TERMUX_PKG_SRCDIR" ] && chmod +w -R "$TERMUX_PKG_SRCDIR" [ -d "$TERMUX_PKG_SRCDIR" ] && chmod +w -R "$TERMUX_PKG_SRCDIR" || true
if [ "$TERMUX_SKIP_DEPCHECK" = false ] && \ if [ "$TERMUX_SKIP_DEPCHECK" = false ] && \
[ "$TERMUX_INSTALL_DEPS" = true ] && \ [ "$TERMUX_INSTALL_DEPS" = true ] && \
[ "$TERMUX_PKG_METAPACKAGE" = false ] && \ [ "$TERMUX_PKG_METAPACKAGE" = false ] && \