mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-19 02:28:50 -05:00
adding comment for extractScript
This commit is contained in:
parent
49c3512da8
commit
85817176d4
1 changed files with 2 additions and 0 deletions
|
|
@ -266,6 +266,8 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// extractScript prepares a temporary PowerShell script by prepending environment setup and debug config.
|
||||
// It copies the contents of the provided script file into the temp script and returns its path.
|
||||
func extractScript(p *Provisioner, script string) (string, error) {
|
||||
temp, err := tmp.File("powershell-provisioner-script")
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue