diff options
author | Daniel Baumann <daniel@debian.org> | 2013-01-20 10:41:27 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:04 +0200 |
commit | dc11169a06550ddfe2cbeb313aba5be209e596e2 (patch) | |
tree | 054b69c22d57ab44c1f0b52c820b36964d97d21f | |
parent | 8037a141168acebc6c6f271635e8407aff236731 (diff) | |
download | vyos-live-build-dc11169a06550ddfe2cbeb313aba5be209e596e2.tar.gz vyos-live-build-dc11169a06550ddfe2cbeb313aba5be209e596e2.zip |
Avoiding to unconditionally adding whitespace seperator to config/control for existing configs.
-rwxr-xr-x | scripts/build/config | 7 |
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}" |