Skip to content

Commit bdafe06

Browse files
gayanpermarc0der
authored andcommitted
Add support to Git BashWhen working with git bash it ends up with an error saying it cannot remove the directory 'current' adding the -R will solve it for both nix and win.
1 parent 20bf5c3 commit bdafe06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function __sdkman_link_candidate_version() {
8282

8383
# Change the 'current' symlink for the candidate, hence affecting all shells.
8484
if [[ -L "${SDKMAN_CANDIDATES_DIR}/${candidate}/current" || -d "${SDKMAN_CANDIDATES_DIR}/${candidate}/current" ]]; then
85-
rm -f "${SDKMAN_CANDIDATES_DIR}/${candidate}/current"
85+
rm -rf "${SDKMAN_CANDIDATES_DIR}/${candidate}/current"
8686
fi
8787

8888
ln -s "${version}" "${SDKMAN_CANDIDATES_DIR}/${candidate}/current"

0 commit comments

Comments
 (0)