Allowing to inject variables through config/environment.binary into the binary environment.
This commit is contained in:
parent
3eb2b243cc
commit
7ce43cfc16
|
@ -42,6 +42,13 @@ case "${1}" in
|
|||
COMMAND="lb_${1}"
|
||||
shift
|
||||
|
||||
if [ -e config/environment.binary ]
|
||||
then
|
||||
ENV="$(cat config/environment.binary)"
|
||||
else
|
||||
ENV=""
|
||||
fi
|
||||
|
||||
if [ -x "${LB_BASE}/scripts/build/${COMMAND}" ]
|
||||
then
|
||||
SCRIPT="${LB_BASE}/scripts/build/${COMMAND}"
|
||||
|
@ -57,6 +64,6 @@ case "${1}" in
|
|||
fi
|
||||
|
||||
Echo "[%s] %s" "$(date +'%F %T')" "${COMMAND} ${*}"
|
||||
LB=1 exec "${SCRIPT}" "${@}"
|
||||
LB=1 ${ENV} exec "${SCRIPT}" "${@}"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue