Skip to content

Commit

Permalink
count symbolic link as installed
Browse files Browse the repository at this point in the history
  • Loading branch information
robberphex committed Sep 20, 2021
1 parent 8c889a5 commit 20c62ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/bash/sdkman-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function __sdk_uninstall() {

echo ""

if [ -d "${SDKMAN_CANDIDATES_DIR}/${candidate}/${version}" ]; then
if [[ -d "${SDKMAN_CANDIDATES_DIR}/${candidate}/${version}" || -L "${SDKMAN_CANDIDATES_DIR}/${candidate}/${version}" ]]; then
__sdkman_echo_green "Uninstalling ${candidate} ${version}..."
rm -rf "${SDKMAN_CANDIDATES_DIR}/${candidate}/${version}"
else
Expand Down

0 comments on commit 20c62ae

Please sign in to comment.