setup-offline-bundle.sh: fix script syntax

We can't use "continue" inside subshell in the loop body.
This commit is contained in:
Leonid Pliushch 2020-10-23 00:49:50 +03:00
parent 49c9eabda4
commit 9c116632a8

View File

@ -82,12 +82,12 @@ for p in "$TERMUX_SCRIPTDIR"/packages/*; do
cd "$TERMUX_PKG_CACHEDIR"
. "${p}"/build.sh
${TERMUX_PKG_METAPACKAGE} && continue
if ! ${TERMUX_PKG_METAPACKAGE}; then
echo "Downloading sources for '$TERMUX_PKG_NAME'..."
termux_step_get_source
echo "Downloading sources for '$TERMUX_PKG_NAME'..."
termux_step_get_source
# Delete dummy src and tmp directories.
rm -rf "$TERMUX_PKG_TMPDIR" "$TERMUX_PKG_SRCDIR"
# Delete dummy src and tmp directories.
rm -rf "$TERMUX_PKG_TMPDIR" "$TERMUX_PKG_SRCDIR"
fi
)
done