We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86f12c1 commit 3a6cd8eCopy full SHA for 3a6cd8e
src/ci/scripts/install-msys2.sh
@@ -12,8 +12,10 @@ IFS=$'\n\t'
12
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
13
14
if isWindows; then
15
- choco install msys2 --params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress
16
- mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}"
17
-
18
- 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}" \
19
+ && ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin" && break
20
+ done
21
fi
0 commit comments