Merge pull request #5745 from reitermarkus/cask-edit

Allow editing broken casks.
This commit is contained in:
Markus Reiter 2019-02-16 10:20:56 +01:00 committed by GitHub
commit 713453cc2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ module Cask
def cask_path def cask_path
casks.first.sourcefile_path casks.first.sourcefile_path
rescue CaskInvalidError rescue CaskInvalidError, CaskUnreadableError
path = CaskLoader.path(args.first) path = CaskLoader.path(args.first)
return path if path.file? return path if path.file?