mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
only capture stdout if install_only is set (used by the profile task), fixes the output of 'rake device'
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user