mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-26 05:45:43 +08:00
use system pager to display changelog messages
This commit is contained in:
@@ -31,7 +31,8 @@ module Motion; module Project
|
||||
die "Usage: motion changelog"
|
||||
end
|
||||
|
||||
system("more /Library/RubyMotion/NEWS")
|
||||
pager = (ENV['PAGER'] or '/usr/bin/less')
|
||||
system("#{pager} /Library/RubyMotion/NEWS")
|
||||
end
|
||||
end
|
||||
end; end
|
||||
|
||||
Reference in New Issue
Block a user