summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Nelson <unixabg@gmail.com>2013-02-23 10:11:02 -0600
committerDaniel Baumann <daniel@debian.org>2013-04-09 05:52:08 +0200
commitc84dfffe31a9e5aaad6243f1f1004c8d460a5ce1 (patch)
tree93dbaf49313b47d5ccf4f73c758964b2b1df6ba5
parent0e5cfdb747612312b3eec9af57236db80eac23e2 (diff)
downloadvyos-live-build-c84dfffe31a9e5aaad6243f1f1004c8d460a5ce1.tar.gz
vyos-live-build-c84dfffe31a9e5aaad6243f1f1004c8d460a5ce1.zip
Add sanity check on config type to build for l-b-cgi.
-rwxr-xr-xfrontends/cgi/live-build-cgi.cron6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontends/cgi/live-build-cgi.cron b/frontends/cgi/live-build-cgi.cron
index 4ce9a9c60..391db4b77 100755
--- a/frontends/cgi/live-build-cgi.cron
+++ b/frontends/cgi/live-build-cgi.cron
@@ -67,6 +67,12 @@ then
git clone ${_LB_GIT} "${_TEMPDIR}"/"${_BUILD}" >> /var/log/live
_ERRORGIT="${?}"
+ # Sanity check to default to something since we are going to build from git clone.
+ if [ -z "${_LB_CONFIG}" ]
+ then
+ _LB_CONFIG="standard"
+ fi
+
# Now set a variable for the correct build path
_BUILD_PATH="${_TEMPDIR}/${_BUILD}/images/${_LB_CONFIG}"