Skip to content

Commit

Permalink
Follow symlinks for scripts and extension files
Browse files Browse the repository at this point in the history
Follow symlinks in `~/.sdkman/ext` and `~/.sdkman/ext`.

Fixes #1279
  • Loading branch information
robin-a-meade committed Feb 17, 2024
1 parent 6529e01 commit 3e91798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/bash/sdkman-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fi
# <https://github.com/sdkman/sdkman-extensions>.
OLD_IFS="$IFS"
IFS=$'\n'
scripts=($(find "${SDKMAN_DIR}/src" "${SDKMAN_DIR}/ext" -type f -name 'sdkman-*.sh'))
scripts=($(find -L "${SDKMAN_DIR}/src" "${SDKMAN_DIR}/ext" -type f -name 'sdkman-*.sh'))
for f in "${scripts[@]}"; do
source "$f"
done
Expand Down

0 comments on commit 3e91798

Please sign in to comment.