Skip to content

Commit a1ef070

Browse files
[macos] add retries to edge install script (#8592)
1 parent 4ea41b2 commit a1ef070

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

images/macos/provision/core/edge.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ echo "Version of Microsoft Edge: ${EDGE_VERSION}"
1313
echo "Installing Microsoft Edge WebDriver..."
1414

1515
EDGE_DRIVER_VERSION_URL="https://msedgedriver.azureedge.net/LATEST_RELEASE_${EDGE_VERSION_MAJOR}_MACOS"
16-
EDGE_DRIVER_LATEST_VERSION=$(curl -fsSL "$EDGE_DRIVER_VERSION_URL" | iconv -f utf-16 -t utf-8 | tr -d '\r')
16+
download_with_retries "$EDGE_DRIVER_VERSION_URL" "/tmp" "edge-version"
17+
EDGE_DRIVER_LATEST_VERSION=$(cat /tmp/edge-version | iconv -f utf-16 -t utf-8 | tr -d '\r')
1718
EDGE_DRIVER_URL="https://msedgedriver.azureedge.net/${EDGE_DRIVER_LATEST_VERSION}/edgedriver_mac64.zip"
1819

1920
echo "Compatible version of WebDriver: ${EDGE_DRIVER_LATEST_VERSION}"

0 commit comments

Comments
 (0)