Skip to content

Commit 1e46068

Browse files
committed
debug output
1 parent 2197e3e commit 1e46068

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/build_layers.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,9 @@ function search_wheel {
105105
INDEX=$2
106106

107107
SEARCH_PATTERN="${WHEEL_BASENAME}-[^\"]*${PY_TAG}[^\"]*${PLATFORM}[^\"]*\.whl"
108+
INDEX_URL="${S3_BASE}/index-${INDEX}.html"
108109
echo "Searching for wheel ${SEARCH_PATTERN}"
109-
export WHEEL_FILE=$(curl -sSfL "${S3_BASE}/index-${INDEX}.html" \
110-
| grep -o "$SEARCH_PATTERN" \
111-
| head -n 1)
110+
export WHEEL_FILE=$(curl -sSfL ${INDEX_URL} | grep -o "$SEARCH_PATTERN" | head -n 1)
112111
if [ ! -z "${WHEEL_FILE}" ]; then
113112
curl -sSfL "${S3_BASE}/${WHEEL_FILE}" -o "${WHEEL_FILE}"
114113
echo "Using S3 wheel: ${WHEEL_FILE}"

0 commit comments

Comments
 (0)