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:
parent
bb45eeefc7
commit
d3556570a5
2
clean.sh
2
clean.sh
@ -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
|
||||||
|
@ -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 ] && \
|
||||||
|
Loading…
Reference in New Issue
Block a user