summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-12-04 11:25:19 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:01 +0200
commit4bd9601c657aeb51bc4d2b4ab32233395ab419f8 (patch)
tree887462712aef9081a72581dd173f4e582031e8e4 /functions
parent7400939e8426761e5fcd44eb4cc7c6bcd06ea943 (diff)
downloadvyos-live-build-4bd9601c657aeb51bc4d2b4ab32233395ab419f8.tar.gz
vyos-live-build-4bd9601c657aeb51bc4d2b4ab32233395ab419f8.zip
Updating version config tree version check (Closes: #695091).
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index f1d969372..f76703f36 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -1176,19 +1176,18 @@ Check_defaults ()
# except when bootstrapping the functions/defaults etc.).
CURRENT_CONFIG_VERSION="$(echo ${LB_CONFIG_VERSION} | awk -F. '{ print $1 }')"
- if [ ${CURRENT_CONFIG_VERSION} -ge 4 ]
+ if [ ${CURRENT_CONFIG_VERSION} -ge 5 ]
then
Echo_error "This config tree is too new for this version of live-build (${VERSION})."
Echo_error "Aborting build, please get a new version of live-build."
exit 1
- elif [ ${CURRENT_CONFIG_VERSION} -eq 2 ]
+ elif [ ${CURRENT_CONFIG_VERSION} -eq 3 ]
then
Echo_error "This config tree is too old for this version of live-build (${VERSION})."
Echo_error "Aborting build, please repopulate the config tree."
exit 1
- elif [ ${CURRENT_CONFIG_VERSION} -lt 1 ]
- then
+ else
Echo_warning "This config tree does not specify a format version or has an unknown version number."
Echo_warning "Continuing build, but it could lead to errors or different results. Please repopulate the config tree."
fi