mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-01-17 19:07:43 -05:00
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:
@@ -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}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user