only capture stdout if install_only is set (used by the profile task), fixes the output of 'rake device'

This commit is contained in:
Laurent Sansonetti
2013-11-07 13:19:12 +01:00
parent e64429b580
commit 877ebe99fb

View File

@@ -170,10 +170,10 @@ task :device => :archive do
flags = Rake.application.options.trace ? '-d' : ''
Signal.trap(:INT) { } if ENV['debug']
cmd = "#{env} #{deploy} #{flags} \"#{device_id}\" \"#{App.config.archive}\""
if ENV['debug']
sh(cmd)
else
if ENV['install_only']
$deployed_app_path = `#{cmd}`.strip
else
sh(cmd)
end
end