Skip to content

Commit

Permalink
Manually link brew libraries on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur authored Sep 5, 2022
1 parent 7e3a83a commit c64a1a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ restore_library_helper() {
if ! [ -d "$brew_prefix/opt/$dep_name" ]; then
brew link --force --overwrite "$dep_name" 2>/dev/null || true
fi
if ! [ -d "$brew_prefix/opt/$dep_name" ]; then
sudo ln -sf "$brew_cellar"/"$dep_name"/* "$brew_prefix"/opt/libffi
fi
}

restore_library() {
Expand Down

0 comments on commit c64a1a9

Please sign in to comment.