aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/build.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 29252ea99..c7211f032 100644
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -176,15 +176,15 @@ class Build
end
end
-error_pipe = IO.new(ENV["HOMEBREW_ERROR_PIPE"].to_i, "w")
-error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
+begin
+ error_pipe = IO.new(ENV["HOMEBREW_ERROR_PIPE"].to_i, "w")
+ error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
-# Invalidate the current sudo timestamp in case a build script calls sudo
-system "/usr/bin/sudo", "-k"
+ # Invalidate the current sudo timestamp in case a build script calls sudo
+ system "/usr/bin/sudo", "-k"
-trap("INT", old_trap)
+ trap("INT", old_trap)
-begin
formula = ARGV.formulae.first
options = Options.create(ARGV.options_only)
build = Build.new(formula, options)