Allowing to inject variables through config/environment.binary into the binary environment.

This commit is contained in:
Daniel Baumann 2012-05-31 13:15:18 +02:00
parent 3eb2b243cc
commit 7ce43cfc16
1 changed files with 8 additions and 1 deletions

View File

@ -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