mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 02:36:39 +00:00
chore: ensure file mode is restored in case of error
This commit is contained in:
@@ -677,6 +677,7 @@ class LibEmbedder < AbstractEmbedder
|
||||
mode = File.stat(file).mode
|
||||
File.chmod(0o775, file)
|
||||
yield
|
||||
ensure
|
||||
File.chmod(mode, file)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user