mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 05:17:11 -07:00
Adds a test script.
Should protect against some of the most rudimentary regressions.
This commit is contained in:
parent
7545bcd3a4
commit
e8b8b52080
2 changed files with 41 additions and 2 deletions
|
@ -23,7 +23,7 @@ if test -f "$sdkman_init"
|
|||
end
|
||||
|
||||
# Declare the sdk command for fish
|
||||
function sdk
|
||||
function sdk -d "Manage SDKs"
|
||||
# We need to leave stdin and stdout of sdk free for user interaction.
|
||||
# So, pipe PATH (which might have changed) through a file.
|
||||
# Now, getting the exit code of sdk itself is a hassle so pipe it as well.
|
||||
|
@ -34,7 +34,6 @@ if test -f "$sdkman_init"
|
|||
|
||||
set bashPath $bashDump[1]
|
||||
set sdkStatus $bashDump[2]
|
||||
|
||||
# If SDKMAN! succeeded, copy PATH here (might have changed)
|
||||
if [ $sdkStatus = 0 ]
|
||||
set newPath (string split : "$bashPath")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue