Failing in lb config when config wasn't initialized first with lb init (Closes: #744365).

This commit is contained in:
Daniel Baumann 2014-04-25 21:05:37 +02:00
parent cce1e47ce8
commit d86fb1aeb4
1 changed files with 2 additions and 1 deletions

View File

@ -883,7 +883,8 @@ Check_defaults
if [ ! -e config ]
then
Echo_message "Creating config tree for a ${LB_MODE}/${LB_DISTRIBUTION}/${LIVE_IMAGE_ARCHITECTURE} system"
Echo_error "fatal: Not a live-build directory: use 'lb init' to initialize it"
exit 1
else
Echo_message "Updating config tree for a ${LB_MODE}/${LB_DISTRIBUTION}/${LIVE_IMAGE_ARCHITECTURE} system"
fi