Fixed index out of bound

This commit is contained in:
Fedor Korotkov 2025-07-14 14:43:21 -04:00
parent e3cf995511
commit f292033e59
1 changed files with 10 additions and 6 deletions

View File

@ -167,12 +167,16 @@ build {
}
}
provisioner "shell" {
inline = [
"source ~/.zprofile",
"sudo xcodes select '${var.xcode_version[1]}'",
"xcodebuild -downloadAllPlatforms",
]
dynamic "provisioner" {
for_each = length(var.xcode_version) > 1 ? [1] : []
labels = ["shell"]
content {
inline = [
"source ~/.zprofile",
"sudo xcodes select '${var.xcode_version[1]}'",
"xcodebuild -downloadAllPlatforms",
]
}
}
provisioner "shell" {