Skip to content

Commit 07de58c

Browse files
committed
fix handling of crypt shared
1 parent 1f6161d commit 07de58c

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

etc/setup-test.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,9 @@ if [[ "${GO_BUILD_TAGS}" =~ cse ]]; then
7272
if [ "${SKIP_CRYPT_SHARED_LIB:-''}" = "true" ]; then
7373
CRYPT_SHARED_LIB_PATH=""
7474
echo "crypt_shared library is skipped"
75+
elif [ -z "${CRYPT_SHARED_LIB_PATH:-}" ]; then
76+
echo "crypt_shared library path is empty"
7577
else
76-
# Find the crypt_shared library file and set the CRYPT_SHARED_LIB_PATH to
77-
# the path of that file. Only look for .so, .dll, or .dylib files to prevent matching any other
78-
# downloaded files.
79-
CRYPT_SHARED_LIB_PATH="$(find "$MONGODB_BINARIES" -maxdepth 1 -type f \
80-
-name 'mongo_crypt_v1.so' -o \
81-
-name 'mongo_crypt_v1.dll' -o \
82-
-name 'mongo_crypt_v1.dylib')"
83-
84-
# If we're on Windows, convert the "cygdrive" path to Windows-style paths.
85-
if [ "Windows_NT" = "$OS" ]; then
86-
CRYPT_SHARED_LIB_PATH=$(cygpath -m $CRYPT_SHARED_LIB_PATH)
87-
fi
8878
echo "crypt_shared library will be loaded from path: $CRYPT_SHARED_LIB_PATH"
8979
fi
9080
fi

0 commit comments

Comments
 (0)