From 3b73c79dc648f08c16d924c55c43c4a9e0c924c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Fri, 1 Nov 2019 09:03:24 +0000 Subject: subr/build_init.subr: correctly filter ${_env_vars}. --- subr/build_init.subr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subr/build_init.subr b/subr/build_init.subr index 5d89874b..161ced95 100644 --- a/subr/build_init.subr +++ b/subr/build_init.subr @@ -47,7 +47,8 @@ build_init() { DEFAULT_GIT_ARGS="-6${DEFAULT_GIT_ARGS:+ ${DEFAULT_GIT_ARGS}}"; DEFAULT_WGET_ARGS="-6${DEFAULT_WGET_ARGS:+ ${DEFAULT_WGET_ARGS}}"; fi; - _env_vars="$(export | sed -ne '/^export/s/^export //p' -e 's/=.*$//')"; + _env_vars="$(export | sed -ne '/^export/{s/^export //;s/=.*$//p}')"; + echo $_env_vars _env_vars_except="${DEFAULT_CLEAR_ENV_VARS_EXCEPT}"; for _env_var in ${_env_vars}; do if [ "${_env_var#DEFAULT_}" != "${_env_var}" ]\ -- cgit v1.2.3