Skip to content

Instantly share code, notes, and snippets.

@muumin
Created May 20, 2019 07:34
Show Gist options
  • Select an option

  • Save muumin/0f335739cc0a06a0decc004141a6b4e8 to your computer and use it in GitHub Desktop.

Select an option

Save muumin/0f335739cc0a06a0decc004141a6b4e8 to your computer and use it in GitHub Desktop.

以下のエラーで削除も更新も出来ない場合

Error: Cask 'eclipse-jee' definition is invalid: invalid 'depends_on macos' value: ":leopard"

以下を実行する

/usr/bin/find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' -print0 | /usr/bin/xargs -0 /usr/bin/sed -i '' '/depends_on macos:/d'
@kokwai

kokwai commented Jun 10, 2019

Copy link
Copy Markdown

it works, thanks!

@tandriamil

Copy link
Copy Markdown

Same for me, it worked great, thank you !

@luisgerhorst

Copy link
Copy Markdown

I also had the problem hinted on in the first line (I don't understand the description) and the second line solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment