Updated install root detection to support Elm

Necessary so Elm can be installed properly since Homebrew support isn't
great.
This commit is contained in:
Brooke Kuhlmann
2021-03-14 12:48:06 -06:00
parent e9cd22bb36
commit c62ef77ce2

View File

@@ -79,6 +79,12 @@ get_install_root() {
local file_name="$1"
local file_extension=$(get_extension "$file_name")
# Special cases not supported by Homebrew.
if [[ "$file_name" == "elm" ]]; then
printf "/usr/local/bin"
return
fi
# Dynamically build the install path based on file extension.
case $file_extension in
'')