From 6449d50ffd7132cf45e819f21029cd2b749598d2 Mon Sep 17 00:00:00 2001 From: ilia-shipitsin <125650415+ilia-shipitsin@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:38:19 +0200 Subject: [PATCH] [macos] add retries to yarn install script (#8593) --- images/macos/provision/core/node.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/macos/provision/core/node.sh b/images/macos/provision/core/node.sh index 9e858503..db012971 100644 --- a/images/macos/provision/core/node.sh +++ b/images/macos/provision/core/node.sh @@ -8,7 +8,8 @@ brew_smart_install "node@$defaultVersion" brew link node@$defaultVersion --force --overwrite echo Installing yarn... -curl -fsSL https://yarnpkg.com/install.sh | bash +download_with_retries "https://yarnpkg.com/install.sh" "/tmp" "yarn-install.sh" +bash /tmp/yarn-install.sh if ! is_Ventura || ! is_VenturaArm64; then npm_global_packages=$(get_toolset_value '.npm.global_packages[].name')