bin/alog in autoproj-2.8.8 vs bin/alog in autoproj-2.9.0
- old
+ new
@@ -22,12 +22,14 @@
log_files = cli.logs_of(arg, log: nil)
if log_files.size == 1
logfile = log_files.first
elsif log_files.size > 1
- logfile = cli.select_log_file(log_files)
+ begin
+ logfile = cli.select_log_file(log_files)
+ puts File.read(logfile)
+ rescue Interrupt
+ end
elsif log_files.empty?
raise "no logs found for #{string}"
end
-
- puts File.read(logfile)
end