build-package.sh: fix typo

Chmod has to be called recursively.
This commit is contained in:
Leonid Pliushch 2019-07-04 14:43:52 +03:00
parent 225b1c471f
commit 06f048b540
1 changed files with 2 additions and 2 deletions

View File

@ -94,8 +94,8 @@ termux_step_start_build() {
# Following directories may contain objects with RO-only permissions which
# makes them undeletable. We need fix that.
[ -d "$TERMUX_PKG_BUILDDIR" ] && chmod +w "$TERMUX_PKG_BUILDDIR"
[ -d "$TERMUX_PKG_SRCDIR" ] && chmod +w "$TERMUX_PKG_SRCDIR"
[ -d "$TERMUX_PKG_BUILDDIR" ] && chmod +w -R "$TERMUX_PKG_BUILDDIR"
[ -d "$TERMUX_PKG_SRCDIR" ] && chmod +w -R "$TERMUX_PKG_SRCDIR"
# Cleanup old state:
rm -Rf "$TERMUX_PKG_BUILDDIR" \