cask/installer: ensure config_path exists.

I encountered this when installing `microsoft-edge`.

Perhaps `HOMEBREW_INSTALL_FROM_API` related.
This commit is contained in:
Mike McQuaid 2023-01-07 19:44:44 +00:00
parent 106af03557
commit 20a200bdb7
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -388,6 +388,7 @@ module Cask
end end
def save_config_file def save_config_file
@cask.config_path.dirname.mkpath
@cask.config_path.atomic_write(@cask.config.to_json) @cask.config_path.atomic_write(@cask.config.to_json)
end end