Skip to content

Commit

Permalink
chore: check for libusb in alternative homebrew location (foundry-rs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Mar 25, 2023
1 parent 05d82c6 commit e27f526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foundryup/install
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if [[ ":$PATH:" != *":${FOUNDRY_BIN_DIR}:"* ]]; then
fi

# Warn MacOS users that they may need to manually install libusb via Homebrew:
if [[ "$OSTYPE" =~ ^darwin && ! -f /usr/local/opt/libusb/lib/libusb-1.0.0.dylib ]]; then
if [[ "$OSTYPE" =~ ^darwin && ! [ -f /usr/local/opt/libusb/lib/libusb-1.0.0.dylib || -f /opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib ]]; then
echo && echo "warning: libusb not found. You may need to install it manually on MacOS via Homebrew (brew install libusb)."
fi

Expand Down

0 comments on commit e27f526

Please sign in to comment.