summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/lb15
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/build/lb b/scripts/build/lb
index 7f2156b15..d33ea69dc 100755
--- a/scripts/build/lb
+++ b/scripts/build/lb
@@ -42,12 +42,15 @@ case "${1}" in
COMMAND="lb_${1}"
shift
- if [ -e config/environment.binary ]
- then
- ENV="$(grep -v '^#' config/environment.binary)"
- else
- ENV=""
- fi
+ ENV=""
+
+ for _FILE in config/environment config/environment.binary
+ do
+ if [ -e "${_FILE}" ]
+ then
+ ENV="${ENV} $(grep -v '^#' ${_FILE})"
+ fi
+ done
if [ -x "${LB_BASE}/scripts/build/${COMMAND}" ]
then