summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-11-01 09:51:36 +0100
committerGitHub <noreply@github.com>2019-11-01 09:51:36 +0100
commitba36b41eddc3ff0919537370ca0dd61f1b553e52 (patch)
tree37b5da1f38a8a14b8014b388cef0bdc74fe89119 /subr
parent0f705dfe46a02d288468fb34556063be73b7134e (diff)
parentab17119d98ea15a44c50e28701b6993a0a071f5e (diff)
downloadmidipix_build-ba36b41eddc3ff0919537370ca0dd61f1b553e52.tar.bz2
midipix_build-ba36b41eddc3ff0919537370ca0dd61f1b553e52.tar.xz
Merge pull request #11 from mstorsjo/long-env-vars
Cope with long environment variables that are wrapped over multiple lines
Diffstat (limited to 'subr')
-rw-r--r--subr/build_init.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/subr/build_init.subr b/subr/build_init.subr
index 0634e33b..310585fa 100644
--- a/subr/build_init.subr
+++ b/subr/build_init.subr
@@ -47,7 +47,7 @@ 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 -e 's/^export //' -e 's/=.*$//')";
+ _env_vars="$(export | grep ^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#DEFAULT_}" != "${_env_var}" ]\