frontend: fix passing along global args

trying to use `lb --debug config` for instance did not output debug info
unlike `lb config --debug`.

Gbp-Dch: Ignore
This commit is contained in:
Lyndon Brown 2020-04-29 19:00:40 +01:00
parent 80d9c93de9
commit 1374e82e24
1 changed files with 2 additions and 2 deletions

View File

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