mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cmd/list: skip invalid Caskroom files
This commit is contained in:
parent
ef314d9435
commit
28b1b74607
@ -215,7 +215,7 @@ module Homebrew
|
||||
sig { void }
|
||||
def list_casks
|
||||
casks = if args.no_named?
|
||||
cask_paths = Cask::Caskroom.path.children.map do |path|
|
||||
cask_paths = Cask::Caskroom.path.children.reject(&:file?).map do |path|
|
||||
if path.symlink?
|
||||
real_path = path.realpath
|
||||
real_path.basename.to_s
|
||||
|
Loading…
x
Reference in New Issue
Block a user