properties: allow alternate paths of builder config

See https://github.com/termux/termux-app/issues/2826
This commit is contained in:
Leonid Pliushch 2022-11-14 16:16:53 +02:00
parent ecfaa38aa5
commit 33d13b6628
No known key found for this signature in database
GPG Key ID: 802AB1B71153CBC4
1 changed files with 8 additions and 3 deletions

View File

@ -58,6 +58,11 @@ TERMUX_REPO_COMPONENT=(
)
# Allow to override setup.
if [ -f "$HOME/.termuxrc" ]; then
. "$HOME/.termuxrc"
fi
for f in "${HOME}/.config/termux/termuxrc.sh" "${HOME}/.termux/termuxrc.sh" "${HOME}/.termuxrc"; do
if [ -f "$f" ]; then
echo "Using builder configuration from '$f'..."
. "$f"
break
fi
done
unset f