Work even if the working directory doesn't exist
This commit is contained in:
parent
3d140f5a57
commit
3bdeac3649
2
bin/brew
2
bin/brew
@ -6,7 +6,7 @@ $:.unshift Pathname.new(__FILE__).dirname.parent.realpath+'Library'+'Homebrew'
|
|||||||
require 'env'
|
require 'env'
|
||||||
|
|
||||||
# often causes Ruby to throw exception ffs
|
# often causes Ruby to throw exception ffs
|
||||||
Dir.chdir '/' unless File.exist? Dir.getwd
|
Dir.chdir '/' unless File.directory? ENV['PWD']
|
||||||
|
|
||||||
def prune
|
def prune
|
||||||
n=0
|
n=0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user