summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-12-15 13:30:21 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-12-15 13:30:21 +0000
commit26a97eb7474b254a3103bd6e0e960b52daa32555 (patch)
tree52fc23e28cc2f81b5dada24b6dc8d6c1dfb64844 /subr
parent3bb0a6b329d2451227a4c0bc6576000ce9605ee1 (diff)
downloadmidipix_build-26a97eb7474b254a3103bd6e0e960b52daa32555.tar.bz2
midipix_build-26a97eb7474b254a3103bd6e0e960b52daa32555.tar.xz
subr/build_init.subr:build_init(): don't unset ${DEFAULT_...} environment variables.
vars/midipix.vars:${DEFAULT_CLEAR_ENV_VARS_EXCEPT}: remove implied environment variable names.
Diffstat (limited to 'subr')
-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 9ce0d1dc..e940110f 100644
--- a/subr/build_init.subr
+++ b/subr/build_init.subr
@@ -42,7 +42,8 @@ build_init() {
_env_vars="$(export | sed -e 's/^export //' -e 's/=.*$//')";
_env_vars_except="${DEFAULT_CLEAR_ENV_VARS_EXCEPT}";
for _env_var in ${_env_vars}; do
- if [ "${_env_var#PKG_}" != "${_env_var}" ]; then
+ if [ "${_env_var#DEFAULT_}" != "${_env_var}" ]\
+ || [ "${_env_var#PKG_}" != "${_env_var}" ]; then
_env_vars_except="${_env_vars_except:+${_env_vars_except} }${_env_var}";
fi;
done;