diff options
| author | Max Howell | 2009-08-21 18:26:50 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-21 18:26:50 +0100 |
| commit | 65e1419ea977c6ea1f4edd6ebf24f48c84fa0832 (patch) | |
| tree | f83ae11da83811d10f838022c63f7365e35e72d9 /Library/Homebrew | |
| parent | 9bc60b80b6e277050e750132bc775bdc3fb28017 (diff) | |
| download | brew-65e1419ea977c6ea1f4edd6ebf24f48c84fa0832.tar.bz2 | |
Raise if installing a non-existent file
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/pathname+yeast.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb index 30f2a254c..dffbb0244 100644 --- a/Library/Homebrew/pathname+yeast.rb +++ b/Library/Homebrew/pathname+yeast.rb @@ -33,7 +33,8 @@ class Pathname def install src if src.is_a? Array src.collect {|src| install src } - elsif File.exist? src + else + raise "#{src} does not exist" unless File.exist? src mkpath if File.symlink? src # we use the BSD mv command because FileUtils copies the target and |
