Skip to content

Commit 2199b71

Browse files
committed
I can't shell
1 parent 4071602 commit 2199b71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fi
9191

9292
# Install openssl
9393
if [ -n "$OPENSSL_VERSION" ]; then
94-
if [ "$CIBUILDWHEEL" != "1" || "$KERNEL" != "Darwin" ]; then
94+
if [ "$CIBUILDWHEEL" != "1" ] || [ "$KERNEL" != "Darwin" ]; then
9595
echo "OPENSSL_VERSION should only be set when building"
9696
echo "macOS universal2 wheels on GitHub!"
9797
echo "Please unset and try again"
@@ -133,7 +133,7 @@ if [ -n "$LIBSSH2_VERSION" ]; then
133133
wget https://www.libssh2.org/download/$FILENAME.tar.gz -N --no-check-certificate
134134
tar xf $FILENAME.tar.gz
135135
cd $FILENAME
136-
if [ "$KERNEL" = "Darwin" && "$CIBUILDWHEEL" = "1" ]; then
136+
if [ "$KERNEL" = "Darwin" ] && [ "$CIBUILDWHEEL" = "1" ]; then
137137
cmake . \
138138
-DCMAKE_INSTALL_PREFIX=$PREFIX \
139139
-DBUILD_SHARED_LIBS=ON \
@@ -161,7 +161,7 @@ if [ -n "$LIBGIT2_VERSION" ]; then
161161
wget https://github.com/libgit2/libgit2/archive/refs/tags/v$LIBGIT2_VERSION.tar.gz -N -O $FILENAME.tar.gz
162162
tar xf $FILENAME.tar.gz
163163
cd $FILENAME
164-
if [ "$KERNEL" = "Darwin" && "$CIBUILDWHEEL" = "1" ]; then
164+
if [ "$KERNEL" = "Darwin" ] && [ "$CIBUILDWHEEL" = "1" ]; then
165165
CMAKE_PREFIX_PATH=$OPENSSL_PREFIX:$LIBSSH2_PREFIX cmake . \
166166
-DBUILD_SHARED_LIBS=ON \
167167
-DBUILD_CLAR=OFF \

0 commit comments

Comments
 (0)