Skip to content

Commit 1fc2e0e

Browse files
ditaa: install binary with write_jar_script
1 parent 4671cee commit 1fc2e0e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Formula/d/ditaa.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ class Ditaa < Formula
1515

1616
def install
1717
libexec.install "ditaa-#{version}-standalone.jar"
18-
(bin/"ditaa").write <<~BASH
19-
#!/bin/bash
20-
exec "#{Formula["openjdk"].opt_bin}/java" -jar "#{libexec}/ditaa-#{version}-standalone.jar" "$@"
21-
BASH
18+
bin.write_jar_script libexec/"ditaa-#{version}-standalone.jar", "ditaa"
2219
end
2320

2421
test do

0 commit comments

Comments
 (0)