diff options
| author | Jack Nagel | 2014-03-25 23:45:23 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-25 23:45:23 -0500 |
| commit | 50f394032f78f9b1e1a151c20008489a596d4ae9 (patch) | |
| tree | 15483506d57fdfb0b6b194b8bfbb197619f3882f /Library | |
| parent | 6e86976920f97eafaa8fcd2819b1ab3d63375059 (diff) | |
| download | brew-50f394032f78f9b1e1a151c20008489a596d4ae9.tar.bz2 | |
Write plists atomically
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index e2be278b0..9e8cab3fb 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -551,9 +551,7 @@ class FormulaInstaller def install_plist return unless f.plist - # A plist may already exist if we are installing from a bottle - f.plist_path.unlink if f.plist_path.exist? - f.plist_path.write f.plist + f.plist_path.atomic_write(f.plist) f.plist_path.chmod 0644 end |
