summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-03-28 03:36:55 +0000
committerLyndon Brown <jnqnfe@gmail.com>2020-04-23 11:52:13 +0100
commitd38a097809dd386dfa253e27b8be80987b913e4b (patch)
tree13ca4e835299bdad9e26e4df6baf6c3b2cd8ddd7 /functions
parent673b8116279d4899eb3eb9a03d3abeed1926072c (diff)
downloadvyos-live-build-d38a097809dd386dfa253e27b8be80987b913e4b.tar.gz
vyos-live-build-d38a097809dd386dfa253e27b8be80987b913e4b.zip
config: support comma or space separated archive area lists
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 02339aa4e..ae311a2cd 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -54,11 +54,13 @@ New_configuration ()
# Image: Archive Areas
LB_ARCHIVE_AREAS="${LB_ARCHIVE_AREAS:-$(Get_configuration config/build Archive-Areas)}"
LB_ARCHIVE_AREAS="${LB_ARCHIVE_AREAS:-main}"
+ LB_ARCHIVE_AREAS="$(echo "${LB_ARCHIVE_AREAS}" | tr "," " ")"
export LB_ARCHIVE_AREAS
# Image: Archive Areas
LB_PARENT_ARCHIVE_AREAS="${LB_PARENT_ARCHIVE_AREAS:-$(Get_configuration config/build Parent-Archive-Areas)}"
LB_PARENT_ARCHIVE_AREAS="${LB_PARENT_ARCHIVE_AREAS:-${LB_ARCHIVE_AREAS}}"
+ LB_PARENT_ARCHIVE_AREAS="$(echo "${LB_PARENT_ARCHIVE_AREAS}" | tr "," " ")"
export LB_PARENT_ARCHIVE_AREAS
# Image: Type