Merge pull request #383 from ligun/fix-to-work-with-cygwin

Fix "not valid in thes context" when working with Cygwin
This commit is contained in:
Marco Vermeulen
2015-10-28 11:26:28 +00:00

View File

@@ -18,7 +18,7 @@
function __sdkman_path_contains {
local candidate="$1"
local exists=$(echo "$PATH" | grep "$candidate")
local exists="$(echo "$PATH" | grep "$candidate")"
if [[ -n "$exists" ]]; then
SDKMAN_CANDIDATE_IN_PATH='true'
else
@@ -37,4 +37,4 @@ function __sdkman_add_to_path {
function __sdkman_set_candidate_home {
local upper_candidate=$(echo "${CANDIDATE}" | tr '[:lower:]' '[:upper:]')
export "${upper_candidate}_HOME"="${SDKMAN_CANDIDATES_DIR}/${CANDIDATE}/${VERSION}"
}
}