Skip to content

Commit

Permalink
Fix TISTUD-6139: added check to make sure we get the right sdk versio…
Browse files Browse the repository at this point in the history
…n and it's not null.
  • Loading branch information
Michael Xia committed Feb 6, 2014
1 parent f2f2df2 commit b755dbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hook/lvhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ exports.init = function(logger, config, cli) {

function doConfig(data, finished) {
debug('Runningbuild.[PLATFORM].config hook');
var r = ((simpVer(cli.version) < 321) ? data.result : simpVer(cli.sdk.name) < 321 ? data.result[0] : data.result[1]) || {};
var sdkVersion = (cli.sdk && cli.sdk.name) || (cli.manifest && cli.manifest.version);
var r = ((simpVer(cli.version) < 321) ? data.result : (sdkVersion && simpVer(sdkVersion) < 321) ? data.result[0] : data.result[1]) || {};
r.flags || (r.flags = {});
r.flags.liveview = {
default: false,
Expand Down

0 comments on commit b755dbc

Please sign in to comment.