summaryrefslogtreecommitdiffhomepage
path: root/build.sh
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-04-06 13:41:37 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-04-06 13:41:37 +0100
commit7bede2bf575271f963e7e9049c08c8a564d8f1cb (patch)
tree66da39c78fe40df7252a7064d930d73fe955ddb2 /build.sh
parent30b734b4fc70876e2f5860119f684bd69c4f3779 (diff)
downloadmidipix_build-7bede2bf575271f963e7e9049c08c8a564d8f1cb.tar.bz2
midipix_build-7bede2bf575271f963e7e9049c08c8a564d8f1cb.tar.xz
build.sh:build(): workaround bash >=4.4.20 & Zsh inconsistency concerning local uninitialised variables inheriting from the environment (or not.)
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 26ccd952..ba06c3e4 100755
--- a/build.sh
+++ b/build.sh
@@ -117,8 +117,9 @@ build() {
BUILD_NFAIL=0 BUILD_NFINI=0 BUILD_NSKIP=0 BUILD_PKGS_FAILED="" BUILD_TARGET="" BUILD_USER="" \
DEFAULT_BUILD_CPUS=1 DEFAULT_BUILD_LAST_FAILED_PKG_FNAME="" DEFAULT_BUILD_LOG_FNAME="" \
DEFAULT_BUILD_STEPS="" DEFAULT_BUILD_VARS="" DEFAULT_CLEAR_PREFIX_PATHS="" DEFAULT_GIT_ARGS="" \
- DEFAULT_GITROOT_HEAD DEFAULT_LOG_ENV_VARS="" DEFAULT_MIRRORS="" DEFAULT_TARGET="" DEFAULT_WGET_ARGS="" \
- MIDIPIX_BUILD_PWD=""; DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME=""; EX_PKG_DISPATCH_WAIT="";
+ DEFAULT_GITROOT_HEAD="${DEFAULT_GITROOT_HEAD:-}" DEFAULT_LOG_ENV_VARS="" DEFAULT_MIRRORS="" \
+ DEFAULT_TARGET="" DEFAULT_WGET_ARGS="" MIDIPIX_BUILD_PWD="";
+ DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME=""; EX_PKG_DISPATCH_WAIT="";
if ! . "${0%/*}/subr/build_init.subr"; then
_rc=1; printf "Error: failed to source \`${0%/*}/subr/build_init.subr'." >&2;
elif ! build_init "${@}"; then