From c62ef77ce2748b70c2e10c3c9c6e5d68e042d87e Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Sun, 14 Mar 2021 12:48:06 -0600 Subject: [PATCH] Updated install root detection to support Elm Necessary so Elm can be installed properly since Homebrew support isn't great. --- lib/utilities.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/utilities.sh b/lib/utilities.sh index 0cb44e1..292779b 100644 --- a/lib/utilities.sh +++ b/lib/utilities.sh @@ -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 '')