frontend: fix use of config/environment[.binary]

the environment variables when held in a variable need to be used via
`env` otherwise you get command not found errors.

example:
```
$ echo "AA=aa" > config/environment
$ lb config
/usr/bin/lb: 83: AA=aa: not found
$ ENV="AA=aa"
$ ${ENV} true
bash: AA=aa: command not found
$ "${ENV}" true
bash: AA=aa: command not found
$ env ${ENV} true
```

Gbp-Dch: Short
This commit is contained in:
Lyndon Brown 2020-04-03 04:22:55 +01:00 committed by Raphaël Hertzog
parent 04c5aae0a9
commit 8b1f9f0131
1 changed files with 2 additions and 1 deletions

View File

@ -80,4 +80,5 @@ if [ "${_COLOR_OUT}" = "true" ]; then
_CMD_LABEL="${CYAN}${_CMD_LABEL}${NO_COLOR}"
fi
Echo "[%s] ${_CMD_LABEL} %s" "$(date +'%F %T')" "$(echo ${@})"
${ENV} exec "${SCRIPT}" "${@}"
exec /usr/bin/env ${ENV} "${SCRIPT}" "${@}"