aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-10-28 21:46:11 +0100
committerMike McQuaid2017-10-28 21:46:30 +0100
commite88fd4a86821a4cfe4d8d37cb3f5ce432531e5ff (patch)
treec1cb9457943b7795f1e45ef35856ad7f4f23e499 /Library/Homebrew/dev-cmd
parent7caca570736a6232512328992b398270dbbf3f4f (diff)
downloadbrew-e88fd4a86821a4cfe4d8d37cb3f5ce432531e5ff.tar.bz2
bump-formula-pr: always use HOMEBREW_PATH.
Fixes this when using environment filtering.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/bump-formula-pr.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb
index fe7e6be3d..3fd0d1206 100644
--- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb
+++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -109,6 +109,10 @@ module Homebrew
end
def bump_formula_pr
+ # As this command is simplifying user run commands then let's just use a
+ # user path, too.
+ ENV["PATH"] = ENV["HOMEBREW_PATH"]
+
formula = ARGV.formulae.first
if formula