summaryrefslogtreecommitdiff
path: root/scripts/build/config
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2013-01-20 10:41:27 +0100
committerDaniel Baumann <daniel@debian.org>2013-01-20 10:42:07 +0100
commit300a0208e82bdba5d5457dd10bf53ad88721d23d (patch)
tree054b69c22d57ab44c1f0b52c820b36964d97d21f /scripts/build/config
parenta9b85c8d7bfda527b4f89590286a225bece0abf3 (diff)
downloadvyos-live-build-300a0208e82bdba5d5457dd10bf53ad88721d23d.tar.gz
vyos-live-build-300a0208e82bdba5d5457dd10bf53ad88721d23d.zip
Avoiding to unconditionally adding whitespace seperator to config/control for existing configs.
Diffstat (limited to 'scripts/build/config')
-rwxr-xr-xscripts/build/config7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/build/config b/scripts/build/config
index c5b01db74..c2a59192c 100755
--- a/scripts/build/config
+++ b/scripts/build/config
@@ -1484,8 +1484,13 @@ Echo_warning "WARNING: THIS VERSION OF LIVE-BUILD IS EXPERIMENTAL!"
Echo_warning "IT IS UNFINISHED AND CHANGES HEAVILY WITHOUT PRIOR NOTICE."
Echo_warning "USER DISCRETION IS ADVISED."
+if [ ! -e config/control ]
+then
+ _NEW_CONFIG="true"
+fi
+
Set_configuration "config/control" "Configuration-Version" "${LIVE_CONFIGURATION_VERSION}"
-echo "" >> config/control
+[ "${_NEW_CONFIG}" = "true" ] && echo "" >> config/control
Set_configuration "config/control" "Name" "${LIVE_IMAGE_NAME}"
Set_configuration "config/control" "Architecture" "${LIVE_IMAGE_ARCHITECTURE}"
Set_configuration "config/control" "Archive-Areas" "${LIVE_IMAGE_ARCHIVE_AREAS}"