Write plists atomically
This commit is contained in:
parent
6e86976920
commit
50f394032f
@ -551,9 +551,7 @@ class FormulaInstaller
|
|||||||
|
|
||||||
def install_plist
|
def install_plist
|
||||||
return unless f.plist
|
return unless f.plist
|
||||||
# A plist may already exist if we are installing from a bottle
|
f.plist_path.atomic_write(f.plist)
|
||||||
f.plist_path.unlink if f.plist_path.exist?
|
|
||||||
f.plist_path.write f.plist
|
|
||||||
f.plist_path.chmod 0644
|
f.plist_path.chmod 0644
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user