From debd5e2d669fb6b8e910cba61d3b08bdd01228c7 Mon Sep 17 00:00:00 2001 From: Raphael Reitzig <4246780+reitzig@users.noreply.github.com> Date: Sat, 14 Jul 2018 22:26:38 +0200 Subject: [PATCH] Do not add uninstalled SDKs to PATH. Fixes issue #10 pt1. --- .travis.yml | 7 +++++-- conf.d/sdk.fish | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e180ba6..08d8e7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,5 +17,8 @@ install: jobs: include: - - stage: Test Wrapper - script: fish test/wrapper.fish \ No newline at end of file + - stage: General Wrapper Tests + script: fish test/wrapper.fish + - stage: Ticket-specific tests + script: + - sdk install crash 1.3.0; sdk uninstall crash 1.3.0; fish test/10_zombies_new.fish \ No newline at end of file diff --git a/conf.d/sdk.fish b/conf.d/sdk.fish index c03a755..6b59ef0 100644 --- a/conf.d/sdk.fish +++ b/conf.d/sdk.fish @@ -17,8 +17,8 @@ if test -f "$sdkman_init" # This is a subshell, SDKMAN! binaries already in path. case '*' # No SDKMAN! in PATH yet, so add candidate binaries - for ITEM in $HOME/.sdkman/candidates/* ; - set -gx PATH $PATH $ITEM/current/bin + for ITEM in $HOME/.sdkman/candidates/*/current ; + set -gx PATH $PATH $ITEM/bin end end