Avoid re-populating an already populated configuration tree when using lb config --config.

This commit is contained in:
Daniel Baumann 2012-12-13 19:04:14 +01:00
parent 3f19c0c357
commit 0fa1427801
1 changed files with 10 additions and 0 deletions

View File

@ -872,6 +872,16 @@ then
_CONFIG=""
fi
if [ -e .build/config ] && [ -n "${_CONFIG}" ]
then
if [ "${1}" != "noauto" ]
then
Echo_message "Ignoring --config ${_CONFIG}: ${PWD} is already a live-build configuration tree"
fi
_CONFIG=""
fi
if [ -n "${_CONFIG}" ]
then
if [ -e "${_CONFIG}" ] || [ -e "/usr/share/live/images/${_CONFIG}" ]