aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorJack Nagel2013-06-20 16:18:01 -0500
committerJack Nagel2013-06-20 16:22:55 -0500
commit7a9ed17fbbf09b2aeae134c03eb3b0478933ab58 (patch)
treedeff47c2aab3d6621930dc775630d2c99090256d /Library/Homebrew/extend
parent21158fc979b197fd320cff18116ef6c6a1a648b2 (diff)
downloadhomebrew-7a9ed17fbbf09b2aeae134c03eb3b0478933ab58.tar.bz2
Splatted parameter is always an array
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 1b0bf8b27..eed5d0383 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -356,7 +356,7 @@ class Pathname
# Writes an exec script in this folder for each target pathname
def write_exec_script *targets
- targets = [targets].flatten
+ targets.flatten!
if targets.empty?
opoo "tried to write exec sripts to #{self} for an empty list of targets"
end