From 8b1f9f0131a96cf2a6b3764de5140e13a3adb3eb Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Fri, 3 Apr 2020 04:22:55 +0100 Subject: [PATCH] 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 --- frontend/lb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/lb b/frontend/lb index 5aa8b1a45..0ebcc200e 100755 --- a/frontend/lb +++ b/frontend/lb @@ -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}" "${@}"