diff --git a/templates/vanilla-monterey.pkr.hcl b/templates/vanilla-monterey.pkr.hcl index ceb13f2..692ed96 100644 --- a/templates/vanilla-monterey.pkr.hcl +++ b/templates/vanilla-monterey.pkr.hcl @@ -128,7 +128,7 @@ build { inline = [ # Install command-line tools "touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress", - "softwareupdate --list | sed -n 's/.*Label: \\(Command Line Tools for Xcode-.*\\)/\\1/p' | tr '\\n' '\\0' | xargs -0 softwareupdate --install", + "softwareupdate --list | sed -n 's/.*Label: \\(Command Line Tools for Xcode-.*\\)/\\1/p' | xargs -I {} softwareupdate --install '{}'", "rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress", ] } diff --git a/templates/vanilla-sonoma.pkr.hcl b/templates/vanilla-sonoma.pkr.hcl index 72ccffd..3f28954 100644 --- a/templates/vanilla-sonoma.pkr.hcl +++ b/templates/vanilla-sonoma.pkr.hcl @@ -127,7 +127,7 @@ build { inline = [ # Install command-line tools "touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress", - "softwareupdate --list | sed -n 's/.*Label: \\(Command Line Tools for Xcode-.*\\)/\\1/p' | tr '\\n' '\\0' | xargs -0 softwareupdate --install", + "softwareupdate --list | sed -n 's/.*Label: \\(Command Line Tools for Xcode-.*\\)/\\1/p' | xargs -I {} softwareupdate --install '{}'", "rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress", ] } diff --git a/templates/vanilla-ventura.pkr.hcl b/templates/vanilla-ventura.pkr.hcl index 39635c7..fa229c0 100644 --- a/templates/vanilla-ventura.pkr.hcl +++ b/templates/vanilla-ventura.pkr.hcl @@ -136,7 +136,7 @@ build { inline = [ # Install command-line tools "touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress", - "softwareupdate --list | sed -n 's/.*Label: \\(Command Line Tools for Xcode-.*\\)/\\1/p' | tr '\\n' '\\0' | xargs -0 softwareupdate --install", + "softwareupdate --list | sed -n 's/.*Label: \\(Command Line Tools for Xcode-.*\\)/\\1/p' | xargs -I {} softwareupdate --install '{}'", "rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress", ] }