Skip to content

Commit 9e85b84

Browse files
committed
print search pattern
1 parent 0f528bb commit 9e85b84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build_layers.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ function docker_build_zip {
122122
PLATFORM="manylinux2014_aarch64"
123123
fi
124124
PY_TAG="cp$(echo "$1" | tr -d '.')"
125+
SEARCH_PATTERN="ddtrace_serverless-[^\"]*${PY_TAG}[^\"]*${PLATFORM}[^\"]*\.whl"
126+
echo "Searching for wheel ${SEARCH_PATTERN}"
125127
WHEEL_FILE=$(curl -sSfL "${S3_BASE}/index-serverless.html" \
126-
| grep -o "ddtrace_serverless-[^\"]*${PY_TAG}[^\"]*${PLATFORM}[^\"]*\.whl" \
128+
| grep -o "$SEARCH_PATTERN" \
127129
| head -n 1)
128130
if [ -z "${WHEEL_FILE}" ]; then
129131
echo "No S3 wheel found for ${PY_TAG} ${PLATFORM}, using default pyproject.toml version"

0 commit comments

Comments
 (0)