Allow editing broken casks.
This commit is contained in:
parent
2ca56f6731
commit
5536432c4f
@ -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?
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user