aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/patch.rb
diff options
context:
space:
mode:
authorJack Nagel2014-12-26 19:42:11 -0500
committerJack Nagel2014-12-26 19:42:11 -0500
commitf0e9a192df85c43e90629f3581180892bd233d83 (patch)
tree619936114b3465fa114a8876c074b224e9cc49f1 /Library/Homebrew/patch.rb
parentb76e26c9cf1fc805663d86b6d6d081f91f73ea18 (diff)
downloadhomebrew-f0e9a192df85c43e90629f3581180892bd233d83.tar.bz2
Allow debugging patching failures
Closes #33056.
Diffstat (limited to 'Library/Homebrew/patch.rb')
-rw-r--r--Library/Homebrew/patch.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb
index 2adb808f3..72deabefd 100644
--- a/Library/Homebrew/patch.rb
+++ b/Library/Homebrew/patch.rb
@@ -128,7 +128,7 @@ class ExternalPatch
resource.unpack do
# Assumption: the only file in the staging directory is the patch
patchfile = Pathname.pwd.children.first
- safe_system "/usr/bin/patch", "-g", "0", "-f", "-d", dir, "-#{strip}", "-i", patchfile
+ dir.cd { safe_system "/usr/bin/patch", "-g", "0", "-f", "-#{strip}", "-i", patchfile }
end
end