diff --git a/build/actions/os.js b/build/actions/os.js index 28edee4a..df62871f 100644 --- a/build/actions/os.js +++ b/build/actions/os.js @@ -32,22 +32,19 @@ signature: 'output', parameter: 'output', description: 'output file', - alias: 'o' + alias: 'o', + required: 'You need to specify an output file' } ], permission: 'user', action: function(params, options, done) { - var fileName, osParams; + var osParams; osParams = { network: options.network, wifiSsid: options.ssid, wifiKey: options.key, appId: params.id }; - fileName = resin.models.os.generateCacheName(osParams); - if (options.output == null) { - options.output = path.join(resin.settings.get('directories.os'), fileName); - } return async.waterfall([ function(callback) { return mkdirp(path.dirname(options.output), _.unary(callback)); diff --git a/lib/actions/os.coffee b/lib/actions/os.coffee index ec2cae45..c079e8a5 100644 --- a/lib/actions/os.coffee +++ b/lib/actions/os.coffee @@ -42,6 +42,7 @@ exports.download = parameter: 'output' description: 'output file' alias: 'o' + required: 'You need to specify an output file' } ] permission: 'user' @@ -52,9 +53,6 @@ exports.download = wifiKey: options.key appId: params.id - fileName = resin.models.os.generateCacheName(osParams) - options.output ?= path.join(resin.settings.get('directories.os'), fileName) - async.waterfall [ (callback) ->