Skip to content

Commit

Permalink
brew.rb: don't exit when failing to set devcmdrun.
Browse files Browse the repository at this point in the history
It's not necessary to make this a hard failure so don't (and this makes
it more consistent with `brew.sh`).

Fixes Homebrew#1462.
  • Loading branch information
MikeMcQuaid committed Nov 9, 2016
1 parent c091882 commit 007002a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/brew.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def require?(path)
unless internal_cmd
internal_cmd = require? HOMEBREW_LIBRARY_PATH.join("dev-cmd", cmd)
if internal_cmd && !ARGV.homebrew_developer?
safe_system "git", "config", "--file=#{HOMEBREW_REPOSITORY}/.git/config",
"--replace-all", "homebrew.devcmdrun", "true"
system "git", "config", "--file=#{HOMEBREW_REPOSITORY}/.git/config",
"--replace-all", "homebrew.devcmdrun", "true"
ENV["HOMEBREW_DEV_CMD_RUN"] = "1"
end
end
Expand Down

0 comments on commit 007002a

Please sign in to comment.