properties: allow alternate paths of builder config
See https://github.com/termux/termux-app/issues/2826
This commit is contained in:
parent
ecfaa38aa5
commit
33d13b6628
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue