解决 invalid 'depends_on macos'

问题:

~ brew cask uninstall macdown
Error: Cask 'macdown' definition is invalid: invalid 'depends_on macos' value: ":mountain_lion"

解决:

/usr/bin/find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' -print0 | /usr/bin/xargs -0 /usr/bin/perl -i -pe 's/depends_on macos: \[.*?\]//gsm;s/depends_on macos: .*//g'

参考:https://github.com/Homebrew/homebrew-cask/issues/58046

转载于:https://my.oschina.net/antsky/blog/3074120

你可能感兴趣的:(解决 invalid 'depends_on macos')