summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-11-01 08:56:52 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-11-01 08:56:52 +0000
commit9b168dccc3a9f85e70587a0448a9a5111473a173 (patch)
tree3f6adfc7c2a4b40964cdce12cfef6e4761727687 /subr
parentba36b41eddc3ff0919537370ca0dd61f1b553e52 (diff)
downloadmidipix_build-9b168dccc3a9f85e70587a0448a9a5111473a173.tar.bz2
midipix_build-9b168dccc3a9f85e70587a0448a9a5111473a173.tar.xz
ubr/build_init.subr: merge grep(1) ${_env_vars} filter into sed(1) command line.
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 310585fa..5d89874b 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 | grep ^export | sed -e 's/^export //' -e 's/=.*$//')";
+ _env_vars="$(export | sed -ne '/^export/s/^export //p' -e 's/=.*$//')";
_env_vars_except="${DEFAULT_CLEAR_ENV_VARS_EXCEPT}";
for _env_var in ${_env_vars}; do
if [ "${_env_var#DEFAULT_}" != "${_env_var}" ]\