summaryrefslogtreecommitdiffhomepage
path: root/build.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-02-07 22:25:58 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-02-07 22:25:58 +0100
commit0dae87d3c39796eb0e9288256737e45c5030650e (patch)
tree180c9366c8f49b555cce84267909dd9ea6110397 /build.subr
parent1d38417dedd13ba85075878cc6faaa217adeb865 (diff)
downloadmidipix_build-0dae87d3c39796eb0e9288256737e45c5030650e.tar.bz2
midipix_build-0dae87d3c39796eb0e9288256737e45c5030650e.tar.xz
Clear all locale (7) environment variables before each build.
Diffstat (limited to 'build.subr')
-rw-r--r--build.subr6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.subr b/build.subr
index e8d0a9f7..1c1e7984 100644
--- a/build.subr
+++ b/build.subr
@@ -146,7 +146,11 @@ set_build_dir() {
set_env_vars() {
_val=${1}; shift;
while [ $# -ge 1 ]; do
- export "${1}=${_val}"; shift;
+ if [ -z "${_val}" ]; then
+ unset ${1};
+ else
+ export "${1}=${_val}";
+ fi; shift;
done; unset _val;
};