mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
8 lines
135 B
Ruby
8 lines
135 B
Ruby
![]() |
#!/usr/bin/ruby
|
||
|
$:.push(File.expand_path(__FILE__+'/../..'))
|
||
|
require 'extend/pathname'
|
||
|
|
||
|
p = Pathname.new(ARGV[0])
|
||
|
v = p.version
|
||
|
puts v
|