Skip to content

Commit 4cb8c08

Browse files
authored
Merge pull request #234066 from gromgit/jabba/fix-caveats
jabba: fix paths in caveats
2 parents 38bc1b2 + 32c4307 commit 4cb8c08

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

Formula/j/jabba.rb

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ class Jabba < Formula
88
head "https://github.com/Jabba-Team/jabba.git", branch: "main"
99

1010
bottle do
11-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "ca270e89401f037f27bbba15909d74e3bd2caaaaec257a68720fec024b53e3fc"
12-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "d7ca771e6e62bfe218b66cca1345f0fadf74231d6b5b0264816582102ade7ec4"
13-
sha256 cellar: :any_skip_relocation, arm64_ventura: "e3e0407cf46ffb79d431e20da70d23080391585438fef6681415d4bde01f8094"
14-
sha256 cellar: :any_skip_relocation, arm64_monterey: "12f33d23591f130fcd82fb08d02ef355cc359819e9f690a8412b4c46486feadf"
15-
sha256 cellar: :any_skip_relocation, sonoma: "beb282b92dc05fdbc6547d8abb9c1adcb4af6baf23182faa40272090b6fd1d29"
16-
sha256 cellar: :any_skip_relocation, ventura: "030068b5dbb9d739d9020d94f038bdfa0263fc7b96d6c1986a93322d9ff6972d"
17-
sha256 cellar: :any_skip_relocation, monterey: "bdd8ffb05d7136a668b135865e4ec2e3a3d76d04fd89352113ad94664c7de909"
18-
sha256 cellar: :any_skip_relocation, arm64_linux: "3245fe15e6e1f23e23ac3a4dcd94634399e0c0ed5898550a3784c11f2c0fcee8"
19-
sha256 cellar: :any_skip_relocation, x86_64_linux: "7c3d858b92c8729670829b405334bcdec1a46e375133996510e0a318afa5f9dc"
11+
rebuild 1
12+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "ed963ce1acd1ea436f05349d5093ed85a72d76cf034e690ae0430fa9084e8314"
13+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "451bfa6f56c2c4f10da5bf96d5fb884adafdd6af95fc6644f77009bac128b76f"
14+
sha256 cellar: :any_skip_relocation, arm64_ventura: "fadf80b7fb688e556dd76eda7ef195f0e3621357226f95ba2bedb26db647c041"
15+
sha256 cellar: :any_skip_relocation, sonoma: "3c05ea18167c83b1582d6a342ad3004ca772c0773e44504cd7edaa693c31a43a"
16+
sha256 cellar: :any_skip_relocation, ventura: "2ea99aef72e1eab77ca3b0b8ba357b789f9957b7975a4fc1080c40290326f0e5"
17+
sha256 cellar: :any_skip_relocation, arm64_linux: "100f60eb6c134605692c706ccb22de23398028c4cb8d5219fa675c96c40ba9b4"
18+
sha256 cellar: :any_skip_relocation, x86_64_linux: "e4d4d436fde9d35a6955805b447061a877867995fba0d992c1302067bd61edf7"
2019
end
2120

2221
depends_on "go" => :build
@@ -30,14 +29,17 @@ def install
3029
def caveats
3130
<<~EOS
3231
Add the following line to your ~/.bashrc or ~/.zshrc file:
33-
[ -s "#{opt_pkgshare}/jabba.sh" ] && . "#{opt_pkgshare}/jabba.sh"
32+
[ -s "#{opt_prefix}/jabba.sh" ] && . "#{opt_prefix}/jabba.sh"
3433
3534
If you use the Fish shell then add the following line to your ~/.config/fish/config.fish:
36-
[ -s "#{opt_pkgshare}/jabba.fish" ]; and source "#{opt_pkgshare}/jabba.fish"
35+
[ -s "#{opt_prefix}/jabba.fish" ]; and source "#{opt_prefix}/jabba.fish"
3736
EOS
3837
end
3938

4039
test do
40+
assert_path_exists opt_prefix/"jabba.sh", "Caveat is outdated!"
41+
assert_path_exists opt_prefix/"jabba.fish", "Caveat is outdated!"
42+
4143
ENV["JABBA_HOME"] = testpath/"jabba_home"
4244
jdk_version = "zulu@17"
4345
system bin/"jabba", "install", jdk_version

0 commit comments

Comments
 (0)