build-package.sh: simpler TERMUX_REPO_PKG_FORMAT default
This commit is contained in:
parent
a25a4f1163
commit
3c35c92fde
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue