holgerbrandl / homebrew-tap

homebrew descriptors to install misc tools
0 stars 2 forks source link

Can not install kscript 4.0.2 #1

Open livelazily opened 2 years ago

livelazily commented 2 years ago

brew install kscript show this error:

==> Installing kscript from holgerbrandl/tap
Error: An exception occurred within a child process:
  Utils::Inreplace::Error: inreplace failed
/usr/local/Cellar/kscript/4.0.2/libexec/bin/kscript:
  expected replacement of /^jarPath=.*/ with "jarPath=/usr/local/Cellar/kscript/4.0.2/libexec/bin/kscript.jar"

jarPath was removed in https://github.com/holgerbrandl/kscript/commit/5da336a47f2561cbbcbc5ed492312aad1d340749

jayvdb commented 2 years ago

I've also encountered this.

minkuan88 commented 2 years ago

I've copied the kscript.rb file onto my own homebrew-tap and made the amendments to get it working.

https://github.com/minkuan88/homebrew-tap/blob/main/kscript.rb#L11

seems to install fine when i do a brew install minkuan88/tap/kscript