aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
-rw-r--r--Library/Homebrew/formula.rb2
2 files changed, 2 insertions, 2 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
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 6026f5b6e..b7739a74a 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -781,7 +781,7 @@ class Formula
end
def skip_clean *paths
- paths = [paths].flatten
+ paths.flatten!
# :all is deprecated though
if paths.include? :all