File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,17 @@ def install
30
30
def caveats
31
31
<<~EOS
32
32
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"
34
34
35
35
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"
37
37
EOS
38
38
end
39
39
40
40
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
+
41
44
ENV [ "JABBA_HOME" ] = testpath /"jabba_home"
42
45
jdk_version = "zulu@17"
43
46
system bin /"jabba" , "install" , jdk_version
You can’t perform that action at this time.
0 commit comments