aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorShaun Jackman2017-12-12 09:27:06 -0800
committerShaun Jackman2017-12-12 09:27:06 -0800
commitce85e3b3b57d29236a6ff1bcc7809f65e9e18867 (patch)
treeba562c66452a8c3b523c3cc8967104dbb100dfdd /Library/Homebrew/utils.rb
parenta4033c7196ad842ed37ef05110fd58fd7aa33856 (diff)
downloadbrew-ce85e3b3b57d29236a6ff1bcc7809f65e9e18867.tar.bz2
Remove with_system_path
The method with_system_path is no longer needed, since environment filtering uses a default PATH.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index b592b2064..3ea472c58 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -267,12 +267,6 @@ module Homebrew
# rubocop:enable Style/GlobalVars
end
-def with_system_path
- with_env(PATH: PATH.new("/usr/bin", "/bin")) do
- yield
- end
-end
-
def with_homebrew_path
with_env(PATH: PATH.new(ENV["HOMEBREW_PATH"])) do
yield
@@ -376,7 +370,7 @@ end
# GZips the given paths, and returns the gzipped paths
def gzip(*paths)
paths.collect do |path|
- with_system_path { safe_system "gzip", path }
+ safe_system "gzip", path
Pathname.new("#{path}.gz")
end
end