Skip to content

Commit a0f0747

Browse files
gromgitcarlocab
authored andcommitted
jabba: fix paths in caveats
Closes #234064.
1 parent 96002d9 commit a0f0747

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Formula/j/jabba.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,17 @@ def install
3030
def caveats
3131
<<~EOS
3232
Add the following line to your ~/.bashrc or ~/.zshrc file:
33-
[ -s "#{opt_pkgshare}/jabba.sh" ] && . "#{opt_pkgshare}/jabba.sh"
33+
[ -s "#{opt_prefix}/jabba.sh" ] && . "#{opt_prefix}/jabba.sh"
3434
3535
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"
36+
[ -s "#{opt_prefix}/jabba.fish" ]; and source "#{opt_prefix}/jabba.fish"
3737
EOS
3838
end
3939

4040
test do
41+
assert_path_exists opt_prefix/"jabba.sh", "Caveat is outdated!"
42+
assert_path_exists opt_prefix/"jabba.fish", "Caveat is outdated!"
43+
4144
ENV["JABBA_HOME"] = testpath/"jabba_home"
4245
jdk_version = "zulu@17"
4346
system bin/"jabba", "install", jdk_version

0 commit comments

Comments
 (0)