diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-11-01 09:03:24 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-11-01 09:03:24 +0000 |
commit | 3b73c79dc648f08c16d924c55c43c4a9e0c924c3 (patch) | |
tree | 3d5b6edb1aab84d4e4cbd041fbd8950b8ce77fee | |
parent | e7ae2532643dfbb227c872776c9d01fa18e541c7 (diff) | |
download | midipix_build-3b73c79dc648f08c16d924c55c43c4a9e0c924c3.tar.bz2 midipix_build-3b73c79dc648f08c16d924c55c43c4a9e0c924c3.tar.xz |
subr/build_init.subr: correctly filter ${_env_vars}.
-rw-r--r-- | subr/build_init.subr | 3 |
1 files changed, 2 insertions, 1 deletions
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}" ]\ |