I think are 2 ways.

The one that Rickard says is your script runs an script using bash, you can
use the file provider to upload the file in first hand.

Or as I understand your question, you would like to use that bash/shell
instead of the default.


Then use:

execute_command
<https://www.packer.io/docs/provisioners/windows-shell.html#execute_command>
(string)
- The command to use to execute the script. By default this is {{ .Vars
}}"{{ .Path }}". The value of this is treated as template engine
<https://www.packer.io/docs/templates/engine.html>. There are two available
variables: Path, which is the path to the script to run, and Vars, which is
the list of environment_vars, if configured.

like

execute_command: "C:\cygwin\bin\bash {{ .Path }}",

?

or similar.


Alvaro.

-- 
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/CAHqq0ey3MOPdNdj8dz2KfGpnWE44Lb9i98zm31cxkHHTJzsTzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to