suppress warning during the device init OS download

This commit is contained in:
Eugene Mirotin 2017-03-23 11:55:18 +03:00
parent 69dff0c603
commit cba105a41b
2 changed files with 3 additions and 2 deletions

View File

@ -292,7 +292,7 @@ exports.init = {
var download;
download = function() {
return tmp.tmpNameAsync().then(function(temporalPath) {
return capitano.runAsync("os download " + application.device_type + " --output " + temporalPath);
return capitano.runAsync("os download " + application.device_type + " --output " + temporalPath + " --version default");
}).disposer(function(temporalPath) {
return rimraf(temporalPath);
});

View File

@ -393,7 +393,8 @@ exports.init =
download = ->
tmp.tmpNameAsync().then (temporalPath) ->
capitano.runAsync("os download #{application.device_type} --output #{temporalPath}")
# TODO: allow version selection
capitano.runAsync("os download #{application.device_type} --output #{temporalPath} --version default")
.disposer (temporalPath) ->
return rimraf(temporalPath)