Skip to content

Commit ded0545

Browse files
voronorrplusq
authored andcommitted
Fix conditional syntax issue in macOS libusb check (foundry-rs#9384)
This pull request addresses a minor but important syntax issue in the conditional statement used to check for the presence of libusb on macOS.
1 parent 55eeba9 commit ded0545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

foundryup/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if [[ ":$PATH:" != *":${FOUNDRY_BIN_DIR}:"* ]]; then
5454
fi
5555

5656
# Warn MacOS users that they may need to manually install libusb via Homebrew:
57-
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
57+
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
5858
echo && echo "warning: libusb not found. You may need to install it manually on MacOS via Homebrew (brew install libusb)."
5959
fi
6060

0 commit comments

Comments
 (0)