build-package.sh: simpler TERMUX_REPO_PKG_FORMAT default

This commit is contained in:
Lucy Phipps 2023-09-03 11:19:09 +01:00 committed by GitHub
parent a25a4f1163
commit 3c35c92fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -58,11 +58,7 @@ if [ ! -e "$TERMUX_BUILD_LOCK_FILE" ]; then
fi
export TERMUX_PACKAGES_DIRECTORIES=$(jq --raw-output 'del(.pkg_format) | keys | .[]' ${TERMUX_SCRIPTDIR}/repo.json)
export TERMUX_REPO_PKG_FORMAT=$(jq --raw-output '.pkg_format' ${TERMUX_SCRIPTDIR}/repo.json)
if [ "$TERMUX_REPO_PKG_FORMAT" = "null" ]; then
export TERMUX_REPO_PKG_FORMAT="debian"
fi
export TERMUX_REPO_PKG_FORMAT=$(jq --raw-output '.pkg_format // "debian"' ${TERMUX_SCRIPTDIR}/repo.json)
# Special variable for internal use. It forces script to ignore
# lock file.