Skip to content

Cask blackhole-2ch uses a command that is not in the latest cask code #5291

Closed Answered by T3ll1nG
T3ll1nG asked this question in Casks
Discussion options

You must be logged in to vote

@SMillerDev was right. The .rb is stored in /opt/homebrew/Caskroom/Caskname/.metadata/ and in fact uses the code for the version you have installed.

Here is a short script you can use to replace it if you are on version "0.5.0". Check for potential issues and if none are found you can delete the copy of the original on your Desktop.

#!/bin/zsh

# Make a copy of the original file on the desktop
cp $(brew --prefix)/Caskroom/blackhole-2ch/.metadata/0.5.0/20230214075027.489/Casks/blackhole-2ch.rb ~/Desktop/blackhole-2ch_original.rb

# Replace lines 19 to 28 in the file
sed -i '' '19,28d' $(brew --prefix)/Caskroom/blackhole-2ch/.metadata/0.5.0/20230214075027.489/Casks/blackhole-2ch.rb

# Inser…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@krehel
Comment options

@Iksas
Comment options

@krehel
Comment options

@T3ll1nG
Comment options

Answer selected by T3ll1nG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Casks
Labels
None yet
4 participants