No more "cwd doesn't exist" messages
This commit is contained in:
parent
3fa628e7b1
commit
6ee7a116c2
3
bin/brew
3
bin/brew
@ -5,6 +5,9 @@ require 'pathname'
|
|||||||
$:.unshift Pathname.new(__FILE__).dirname.parent.realpath+'Library'+'Homebrew'
|
$:.unshift Pathname.new(__FILE__).dirname.parent.realpath+'Library'+'Homebrew'
|
||||||
require 'env'
|
require 'env'
|
||||||
|
|
||||||
|
# often causes Ruby to throw exception ffs
|
||||||
|
Dir.chdir '/' unless File.exist? Dir.getwd
|
||||||
|
|
||||||
def prune
|
def prune
|
||||||
n=0
|
n=0
|
||||||
dirs=Array.new
|
dirs=Array.new
|
||||||
|
Loading…
x
Reference in New Issue
Block a user