Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIX missing keg argument error message. Closes #6

  • Loading branch information...
commit de87b6b81665e3ddbec616bee8970a62da40f38d 1 parent 0454fb4
@mxcl mxcl authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 bin/brew
View
5 bin/brew
@@ -3,10 +3,13 @@ $:.unshift __FILE__+'/../../Library/Homebrew'
require 'env'
require 'find'
+PRISTINE_ARGV=ARGV.dup
+
# often causes Ruby to throw exception ffs
Dir.chdir '/' unless File.directory? ENV['PWD']
######################################################################## funcs
+# remove symlinks that no longer point to files
def prune
n=0
dirs=Array.new
@@ -54,7 +57,7 @@ end
def extract_kegs
require 'keg'
kegs=extract_named_args.collect {|name| Keg.new name}
- raise "Expecting the name of a keg or formula, eg:\n\tbrew #{ARGV.join ' '} wget" if kegs.empty?
+ raise "Expecting the name of a keg or formula, eg:\n==> brew #{PRISTINE_ARGV.join ' '} wget" if kegs.empty?
return kegs
end
Please sign in to comment.
Something went wrong with that request. Please try again.