Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packages using incorrect temp directory #162

Closed
dtgm opened this issue Mar 27, 2016 · 2 comments
Closed

packages using incorrect temp directory #162

dtgm opened this issue Mar 27, 2016 · 2 comments

Comments

@dtgm
Copy link
Owner

dtgm commented Mar 27, 2016

Example

$chocTempDir = Join-Path $env:Temp "chocolatey"
$tempDir = Join-Path $chocTempDir "$packageName"
if (![System.IO.Directory]::Exists($tempDir)) {[System.IO.Directory]::CreateDirectory($tempDir) | Out-Null}
if ($env:packageVersion -ne $null) {$tempDir = Join-Path $tempDir "$env:packageVersion";}
Problem

$chocTempDir = Join-Path $env:Temp "chocolatey" == %TEMP%\chocolatey\chocolatey

Because

$env:Temp == %TEMP%\chocolatey

@dtgm
Copy link
Owner Author

dtgm commented Jun 8, 2016

example 2:

$chocTempDir = Join-Path $Env:Temp "chocolatey"
$tempDir = Join-Path $chocTempDir "$packageName"
if (![System.IO.Directory]::Exists($tempDir)) {[System.IO.Directory]::CreateDirectory($tempDir)}
$zipFile = Join-Path $tempDir "$($packageName).zip"

@dtgm
Copy link
Owner Author

dtgm commented Jun 8, 2016

duplicate of #127

@dtgm dtgm closed this as completed Jun 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant