Fixed index out of bound
This commit is contained in:
parent
e3cf995511
commit
f292033e59
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Reference in New Issue