aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMax Howell2009-08-21 18:26:50 +0100
committerMax Howell2009-08-21 18:26:50 +0100
commit65e1419ea977c6ea1f4edd6ebf24f48c84fa0832 (patch)
treef83ae11da83811d10f838022c63f7365e35e72d9 /Library/Homebrew
parent9bc60b80b6e277050e750132bc775bdc3fb28017 (diff)
downloadbrew-65e1419ea977c6ea1f4edd6ebf24f48c84fa0832.tar.bz2
Raise if installing a non-existent file
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/pathname+yeast.rb3
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