Skip to content

Commit 4671cee

Browse files
bfg: install binary with write_jar_script
1 parent d5e6a37 commit 4671cee

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Formula/b/bfg.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ class Bfg < Formula
1818

1919
def install
2020
libexec.install "bfg-#{version}.jar"
21-
(bin/"bfg").write <<~SHELL
22-
#!/bin/bash
23-
exec "#{Formula["openjdk"].opt_bin}/java" -jar "#{libexec}/bfg-#{version}.jar" "$@"
24-
SHELL
21+
bin.write_jar_script libexec/"bfg-#{version}.jar", "bfg"
2522
end
2623

2724
test do

0 commit comments

Comments
 (0)