diff options
author | Richard Nelson <unixabg@gmail.com> | 2013-02-23 10:11:02 -0600 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:06 +0200 |
commit | 391c9033844fb7b8893b2cc019c7252d605550bd (patch) | |
tree | 1acdaf734eaccb2972a1fa490a89e5515ece339f /frontends | |
parent | c4b7263f134e6da0ff310033ae3f186a612fa5c6 (diff) | |
download | vyos-live-build-391c9033844fb7b8893b2cc019c7252d605550bd.tar.gz vyos-live-build-391c9033844fb7b8893b2cc019c7252d605550bd.zip |
Add sanity check on config type to build for l-b-cgi.
Diffstat (limited to 'frontends')
-rwxr-xr-x | frontends/cgi/live-build-cgi.cron | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/frontends/cgi/live-build-cgi.cron b/frontends/cgi/live-build-cgi.cron index 11ed1b1ef..dd42a0863 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}" |