Skip to content
Snippets Groups Projects
Commit bd9755fd authored by Markus Reiter's avatar Markus Reiter
Browse files

Load cask file in `.metadata` directory directly.

parent 7853406f
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ module Hbc
"Casks", "#{cask_token}.rb")
# use the same cask file that was used for installation, if possible
installed_cask = Hbc.load(latest_installed_cask_file) if latest_installed_cask_file.exist?
installed_cask = CaskLoader.load_from_file(latest_installed_cask_file) if latest_installed_cask_file.exist?
end
# Always force uninstallation, ignore method parameter
......
......@@ -20,7 +20,7 @@ module Hbc
"Casks", "#{cask_token}.rb")
# use the same cask file that was used for installation, if possible
cask = Hbc.load(latest_installed_cask_file) if latest_installed_cask_file.exist?
cask = CaskLoader.load_from_file(latest_installed_cask_file) if latest_installed_cask_file.exist?
end
Installer.new(cask, force: force).uninstall
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment