Skip to content
Permalink
Browse files

temporary retry around msys2 install

  • Loading branch information
Mark-Simulacrum committed Dec 23, 2019
1 parent 86f12c1 commit 3a6cd8e42ba605be53ca6d1cf1628085011f1ade
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/ci/scripts/install-msys2.sh
@@ -12,8 +12,10 @@ IFS=$'\n\t'
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"

if isWindows; then
choco install msys2 --params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress
mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}"

ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin"
for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10; do
choco install msys2 \
--params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress \
&& mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}" \
&& ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin" && break
done
fi

0 comments on commit 3a6cd8e

Please sign in to comment.
You can’t perform that action at this time.