Skip to content

Commit

Permalink
choco install fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Badgerati committed Jan 11, 2018
1 parent 941e03d commit 398b05d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions packers/choco/tools/ChocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ErrorActionPreference = 'Stop';
$ErrorActionPreference = 'Stop'

$packageName = 'Pode'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
Expand Down Expand Up @@ -64,9 +64,16 @@ if (!(Test-Path $podeModulePath))
# Copy contents to module
Write-Host 'Copying Pode to module path'

New-Item -ItemType Directory -Path (Join-Path $podeModulePath 'Tools') -Force | Out-Null
Copy-Item -Path ./src/Tools/* -Destination (Join-Path $podeModulePath 'Tools') -Force | Out-Null
try
{
Push-Location (Join-Path $env:ChocolateyPackageFolder 'tools/src')

Copy-Item -Path ./src/Pode.psm1 -Destination $podeModulePath -Force | Out-Null
Copy-Item -Path ./src/Pode.psd1 -Destination $podeModulePath -Force | Out-Null
Copy-Item -Path ./LICENSE.txt -Destination $podeModulePath -Force | Out-Null
New-Item -ItemType Directory -Path (Join-Path $podeModulePath 'Tools') -Force | Out-Null
Copy-Item -Path ./Tools/* -Destination (Join-Path $podeModulePath 'Tools') -Force | Out-Null
Copy-Item -Path ./Pode.psm1 -Destination $podeModulePath -Force | Out-Null
Copy-Item -Path ./Pode.psd1 -Destination $podeModulePath -Force | Out-Null
}
finally
{
Pop-Location
}

0 comments on commit 398b05d

Please sign in to comment.