From ced69b165e2a4976f24d14fe8e32d5535670f1e4 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 9 Apr 2024 09:15:01 +0200 Subject: [PATCH] build-system: use readarray to set list Systems from YAML config --- CHANGELOG.md | 2 +- Pmodules/libpbuild.bash | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8ab44f..f5f16c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ * BUGFIX: group dependencies specified with the option '--with' were ignored (issue #236) * BUGFIX: writing list of 'systems' to module configuration file fixed - (issue #235) + (issues #235, #243) * CHANGE: files in `$PMODULES_TMPDIR/` are now removed before and after building a module (except cleanup has been disbaled). (issue #242) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index 6857c5d..a90d481 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -897,9 +897,9 @@ declare -a Systems pbuild.build_module_yaml(){ local -- module_name="$1" local -- module_version="$2" - Config=$3 + Config="$3" local -- module_relstage="${Config['relstage']}" - Systems=( ${Config['systems']} ) + readarray -t Systems <<< "${Config['systems']}" shift 3 _build_module "${module_name}" "${module_version}" "${module_relstage}" "$@" }