[Abtlinux-svn] SF.net SVN: abtlinux: [184] src/trunk/abt.rb
Status: Alpha
Brought to you by:
eschabell
From: <esc...@us...> - 2006-11-16 10:03:24
|
Revision: 184 http://svn.sourceforge.net/abtlinux/?rev=184&view=rev Author: eschabell Date: 2006-11-16 02:03:14 -0800 (Thu, 16 Nov 2006) Log Message: ----------- Adjusted show-journal to not use a system call, that is one gone. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-15 21:43:52 UTC (rev 183) +++ src/trunk/abt.rb 2006-11-16 10:03:14 UTC (rev 184) @@ -193,7 +193,11 @@ when "show-journal" if ( File.exist?( $JOURNAL ) ) - system( 'less ' + $JOURNAL ) + puts "\n\nAbTLinux journal:" + puts "=================" + log = IO.readlines( $JOURNAL ) + log.each{ |line| puts line } + puts "\n\n" else puts "AbTLinux journal is empty at this time." end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |