Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

Commit

Permalink
- исправлено определение пути к choco в install.ps1 при установке…
Browse files Browse the repository at this point in the history
… на машину без chocolatey (#29)
  • Loading branch information
sergey-s-betke committed Oct 2, 2017
1 parent 98701f9 commit 010c92b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions install/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,17 @@ $null = (

if ( -not ( $env:APPVEYOR -eq 'True' ) ) {
$null = Install-Package -Name chocolatey -MinimumVersion 0.9.10.3 -ProviderName Chocolatey;
$choco = Join-Path `
-Path (
Join-Path `
-Path ( [Environment]::GetEnvironmentVariable( 'ChocolateyInstall', [System.EnvironmentVariableTarget]::Machine ) ) `
-ChildPath 'bin' `
) `
-ChildPath 'choco.exe' `
;

};
$choco = Join-Path `
-Path (
Join-Path `
-Path ( [Environment]::GetEnvironmentVariable( 'ChocolateyInstall', [System.EnvironmentVariableTarget]::Machine ) ) `
-ChildPath 'bin' `
) `
-ChildPath 'choco.exe' `
;

if ( -not ( $env:APPVEYOR -eq 'True' ) ) {
& $choco install cygwin --confirm --failonstderr | Out-String -Stream | Write-Verbose;
$env:CygWin = Get-ItemPropertyValue `
-Path HKLM:\SOFTWARE\Cygwin\setup `
Expand Down

0 comments on commit 010c92b

Please sign in to comment.