From 6a5342accf8351e85584b1772e73008b257c321e Mon Sep 17 00:00:00 2001 From: Kunal Dabir Date: Wed, 13 Jan 2016 15:42:50 +0530 Subject: [PATCH] check for `bin` dir inside SDKMAN_DIR to check previous installation #282 If you have existing dotfiles setup, `~/.sdkman/etc/config` is already present (as a symlink). --- src/main/bash/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/bash/install.sh b/src/main/bash/install.sh index a1797f7b..796c16cb 100755 --- a/src/main/bash/install.sh +++ b/src/main/bash/install.sh @@ -110,7 +110,7 @@ echo ' # Sanity checks echo "Looking for a previous installation of SDKMAN..." -if [ -d "$SDKMAN_DIR" ]; then +if [ -d "$sdkman_bin_folder" ]; then echo "SDKMAN found." echo "" echo "======================================================================================================"