summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2013-01-20 10:41:27 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:04 +0200
commitdc11169a06550ddfe2cbeb313aba5be209e596e2 (patch)
tree054b69c22d57ab44c1f0b52c820b36964d97d21f
parent8037a141168acebc6c6f271635e8407aff236731 (diff)
downloadvyos-live-build-dc11169a06550ddfe2cbeb313aba5be209e596e2.tar.gz
vyos-live-build-dc11169a06550ddfe2cbeb313aba5be209e596e2.zip
Avoiding to unconditionally adding whitespace seperator to config/control for existing configs.
-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}"