Skip to content

Commit

Permalink
Installing global modules into \WindowsPowershell\Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Apr 21, 2016
1 parent 6c47313 commit dd06ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provisioner/dsc/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
// Upload all system-wide resources
for _, path := range p.config.ResourcePaths {
ui.Message(fmt.Sprintf("Uploading global DSC Resources from: %s", path))
targetPath := fmt.Sprintf(`%s\%s`, `${env:SystemDrive}\WindowsPowershell\Modules`, filepath.Base(path))
targetPath := fmt.Sprintf(`%s\%s`, `${env:programfiles}\WindowsPowershell\Modules`, filepath.Base(path))
if err := p.uploadDirectory(ui, comm, targetPath, path); err != nil {
return fmt.Errorf("Error uploading global DSC Resource: %s", err)
}
Expand Down

0 comments on commit dd06ca0

Please sign in to comment.