diff options
| author | Mike McQuaid | 2013-10-12 10:54:16 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-12 10:54:16 +0100 |
| commit | cf2a8913c57621b8b3e109d55016e26e4f92066c (patch) | |
| tree | 2594c5de914dd6b8ece3f4ad2c816c1213a86778 | |
| parent | 167017f89aaab05943d69ff127854bd52ca3455f (diff) | |
| download | brew-cf2a8913c57621b8b3e109d55016e26e4f92066c.tar.bz2 | |
git_etc: create etc if it doesn't exist.
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 52c19ef87..b26d4b7b3 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -94,11 +94,11 @@ class FormulaInstaller def git_etc_postinstall return unless quiet_system 'git', '--version' - etc = HOMEBREW_PREFIX+'etc' preinstall_branch = "#{f.name}-preinstall" default_branch = "#{f.name}-default" merged = false - etc.cd do + f.etc.mkpath + f.etc.cd do if quiet_system 'git', 'diff', '--exit-code', preinstall_branch quiet_system 'git', 'branch', default_branch quiet_system 'git', 'branch', '-D', preinstall_branch |
