Updating config tree version checks.

This commit is contained in:
Daniel Baumann 2009-11-16 08:28:06 +01:00
parent 6b73a487ab
commit 2d3c769856
1 changed files with 6 additions and 1 deletions

View File

@ -1029,11 +1029,16 @@ Check_defaults ()
# except when bootstrapping the functions/defaults etc.).
CURRENT_CONFIG_VERSION="$(echo ${LH_CONFIG_VERSION} | awk -F. '{ print $1 }')"
if [ ${CURRENT_CONFIG_VERSION} -ge 2 ]
if [ ${CURRENT_CONFIG_VERSION} -ge 3 ]
then
Echo_error "This config tree is too new for this version of live-helper (${VERSION})."
Echo_error "Aborting build, please get a new version of live-helper."
exit 1
elif [ ${CURRENT_CONFIG_VERSION} -eq 1 ]
then
Echo_error "This config tree is too old for this version of live-heloer (${VERSION})."
Echo_error "Aborting build, please repopulate the config tree."
exit 1
elif [ ${CURRENT_CONFIG_VERSION} -lt 1 ]
then