With brew mk, open with mate if available

This commit is contained in:
Max Howell 2009-06-08 15:59:59 +01:00
parent 5c0a7e56be
commit 530ab40bd5

View File

@ -272,7 +272,12 @@ begin
f.puts "end"
f.close
puts path
if Kernel.system "which mate > /dev/null" and $? == 0
exec "mate #{path}"
else
puts path
end
when 'info'
o=__obj shift_formulae_from_ARGV[0]
puts "#{o.name} #{o.version}"