resin sync/ssh: always display selection dialog, even for a single online device

Closes #373
This commit is contained in:
Kostas Lekkas 2016-07-28 15:50:32 +03:00
parent 7bd8a683b2
commit e0a2217b94

View File

@ -161,9 +161,6 @@ exports.inferOrSelectDevice = (applicationName) ->
if _.isEmpty(devices)
throw new Error('You don\'t have any devices')
if devices.length is 1
return _.first(devices).uuid
return form.ask
message: 'Select a device'
type: 'list'