Skip to content

Commit

Permalink
Fix conditional syntax issue in macOS libusb check (#9384)
Browse files Browse the repository at this point in the history
This pull request addresses a minor but important syntax issue in the conditional statement used to check for the presence of libusb on macOS.
  • Loading branch information
voronor authored Nov 28, 2024
1 parent 20905ef commit 27cabbd
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 @@ -54,7 +54,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 && ! -f /opt/homebrew/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 27cabbd

Please sign in to comment.