From b0520dfd1d3cb707536dedee6e629177863be53c Mon Sep 17 00:00:00 2001 From: fedor Date: Sun, 20 Oct 2024 11:27:03 -0400 Subject: [PATCH] Fixed empty runtimes --- templates/xcode.pkr.hcl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/xcode.pkr.hcl b/templates/xcode.pkr.hcl index b050efd..32fc759 100644 --- a/templates/xcode.pkr.hcl +++ b/templates/xcode.pkr.hcl @@ -140,10 +140,12 @@ build { } provisioner "shell" { - inline = [ - for runtime in var.additional_runtimes : - "source ~/.zprofile && sudo xcodes runtimes install ${runtime}" - ] + inline = concat( + ["source ~/.zprofile"], + [ + for runtime in var.additional_runtimes : "sudo xcodes runtimes install ${runtime}" + ] + ) } provisioner "shell" {