adding comment for extractScript

This commit is contained in:
karthik P 2025-06-03 23:23:12 +05:30
parent 49c3512da8
commit 85817176d4

View file

@ -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 {