summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-11-01 09:03:24 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-11-01 09:03:24 +0000
commit3b73c79dc648f08c16d924c55c43c4a9e0c924c3 (patch)
tree3d5b6edb1aab84d4e4cbd041fbd8950b8ce77fee
parente7ae2532643dfbb227c872776c9d01fa18e541c7 (diff)
downloadmidipix_build-3b73c79dc648f08c16d924c55c43c4a9e0c924c3.tar.bz2
midipix_build-3b73c79dc648f08c16d924c55c43c4a9e0c924c3.tar.xz
subr/build_init.subr: correctly filter ${_env_vars}.
-rw-r--r--subr/build_init.subr3
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}" ]\