You can either provide a local script file or the inline string to the
command, the execute_command is expanded with this filename for the .Script
variable.
The result should execute something like:
Powershell.exe Move-Item \temp\script \temp\script.ps1; Powershell.exe -File
\temp\script.ps1
where \temp\script contains your command
On Monday, July 10, 2017 at 9:29:35 AM UTC+2, James Elmes wrote:
>
> that doesn't help unless you can explain the below to me, where is
> {{.Script}} predefined, and what would the below do? I just don't
> understand what the below achieves / how it works
>
> > "post-processors": [
> > {
> > "type": "shell-local",
> > "execute_command": "Powershell.exe Move-Item {{.Script}}
> > {{.Script}}.ps1; Powershell.exe -File {{.Script}}.ps1",
> > "inline": ["write-output HIIIIIIIII"]
> > }
>
>
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/180fe9bc-7851-489f-87c4-18bb4f5616b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.