summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-09-27 17:51:52 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-09-27 17:54:32 +0200
commitc41e2f9c242ab87a0f7b541889b73ee8705c94db (patch)
treeb547ce3437ba8093f611194f0eef681372b113c7
parentebdf39487964d78ed42b25bc484d635e8646082b (diff)
downloadptxdist-c41e2f9c242ab87a0f7b541889b73ee8705c94db.tar.gz
ptxdist-c41e2f9c242ab87a0f7b541889b73ee8705c94db.tar.xz
ptxd_make_world_init: fix redefining PTXDIST_LAYERS with older bash versions
This is needed for bash 4.3.30 and probably other older bash versions. Without this, exporting PTXDIST_LAYERS does not work correctly and it is no longer defined once ptxd_make_world_init() is done. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_make_world_common.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh
index 8c44e0ffd..b161cd8a2 100644
--- a/scripts/lib/ptxd_make_world_common.sh
+++ b/scripts/lib/ptxd_make_world_common.sh
@@ -197,8 +197,9 @@ ptxd_make_world_init() {
# PTXDIST_LAYERS gets lost in 'make' so redefine it here
local orig_IFS="${IFS}"
IFS=:
- export -a PTXDIST_LAYERS=( ${PTXDIST_PATH_LAYERS} )
+ PTXDIST_LAYERS=( ${PTXDIST_PATH_LAYERS} )
IFS="${orig_IFS}"
+ export PTXDIST_LAYERS
#
# type