mirror of
https://github.com/hashicorp/packer.git
synced 2026-04-22 14:47:19 -04:00
docs: fix shell-local execute_command example for -c flag
Fixes #13500. The -c flag takes a single string argument combining Vars and Script. Made-with: Cursor
This commit is contained in:
parent
e29c0afb8d
commit
a4f33e0e77
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ Optional parameters:
|
|||
it is necessary below.
|
||||
|
||||
- `execute_command` (array of strings) - The command used to execute the
|
||||
script. By default this is `["/bin/sh", "-c", "{{.Vars}}", "{{.Script}}"]`
|
||||
script. By default this is `["/bin/sh", "-c", "{{.Vars}} {{.Script}}"]`
|
||||
on Unix and `["cmd", "/c", "{{.Vars}}", "{{.Script}}"]` on Windows. This is
|
||||
treated as a [template engine](/packer/docs/templates/legacy_json_templates/engine). There are two
|
||||
available variables: `Script`, which is the path to the script to run, and
|
||||
|
|
|
|||
Loading…
Reference in a new issue