Skip to content

Commit

Permalink
Temp fix for asdf-vm#190 (comment)
Browse files Browse the repository at this point in the history
Just for testing purposes.
  • Loading branch information
seivan committed Mar 29, 2021
1 parent 8622c41 commit a878da5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ macos_install_from_binary() {

# We're not keeping the same directory structure as Homebrew.
local replacement_pattern="@@HOMEBREW_CELLAR@@/erlang/$ASDF_INSTALL_VERSION/lib/erlang"

local brew_prefix="/usr/local"
# Replace the homebrew URL with something compatible with asdf
grep -rl --null "$replacement_pattern" "$ASDF_DOWNLOAD_PATH/lib/erlang" | xargs -0 sed -i '' "s:$replacement_pattern:$ASDF_INSTALL_PATH:g"
#grep -rl --null "@@HOMEBREW_PREFIX@@" "$ASDF_DOWNLOAD_PATH/lib/erlang" | xargs -0 sed -i '' "s:@@HOMEBREW_PREFIX@@:$brew_prefix:g"
install_name_tool -change "@@HOMEBREW_PREFIX@@/opt/[email protected]/lib/libcrypto.1.1.dylib" "/usr/local/opt/[email protected]/lib/libcrypto.1.1.dylib" "$ASDF_DOWNLOAD_PATH/lib/erlang/lib/crypto-4.9/priv/lib/crypto.so"

# Move from download to install
# In the future, maybe copy would be better, but I think keeping downloads is a bad design.
Expand Down

0 comments on commit a878da5

Please sign in to comment.