Closes Homebrew/homebrew#21385.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Phil Smith 2013-07-22 10:57:51 -07:00 committed by Adam Vandenberg
parent 6090b9b2bf
commit 9942bcc21e

View File

@ -365,7 +365,7 @@ class Pathname
def write_exec_script *targets
targets.flatten!
if targets.empty?
opoo "tried to write exec sripts to #{self} for an empty list of targets"
opoo "tried to write exec scripts to #{self} for an empty list of targets"
end
targets.each do |target|
target = Pathname.new(target) # allow pathnames or strings