mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-13 09:35:28 +08:00
Fix shell escaping for file names
This commit is contained in:
@@ -73,5 +73,5 @@ end
|
||||
desc "Open the latest crash report generated for the app"
|
||||
task :crashlog do
|
||||
logs = Dir.glob(File.join(File.expand_path("~/Library/Logs/DiagnosticReports/"), "#{App.config.name}_*"))
|
||||
sh "open -a Console #{logs.last}"
|
||||
sh "open -a Console #{Shellwords.escape(logs.last)}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user