Skip to content

Commit dae40c3

Browse files
rgoldbergmarc0der
authored andcommitted
Use relative path for current link to version dir
1 parent 419ba49 commit dae40c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/bash/sdkman-path-helpers.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,6 @@ function __sdkman_link_candidate_version() {
8484
if [[ -L "${SDKMAN_CANDIDATES_DIR}/${candidate}/current" || -d "${SDKMAN_CANDIDATES_DIR}/${candidate}/current" ]]; then
8585
rm -f "${SDKMAN_CANDIDATES_DIR}/${candidate}/current"
8686
fi
87-
ln -s "${SDKMAN_CANDIDATES_DIR}/${candidate}/${version}" "${SDKMAN_CANDIDATES_DIR}/${candidate}/current"
87+
88+
ln -s "${version}" "${SDKMAN_CANDIDATES_DIR}/${candidate}/current"
8889
}

0 commit comments

Comments
 (0)