mirror of
https://github.com/httpie/cli.git
synced 2024-12-03 21:27:05 +01:00
7 lines
391 B
PowerShell
7 lines
391 B
PowerShell
|
$ErrorActionPreference = 'Stop';
|
|||
|
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
|||
|
$nuspecPath = "$(Join-Path (Split-Path -parent $toolsDir) ($env:ChocolateyPackageName + ".nuspec"))"
|
|||
|
[XML]$nuspec = Get-Content $nuspecPath
|
|||
|
$pipVersion = $nuspec.package.metadata.version
|
|||
|
py -m pip install "$($env:ChocolateyPackageName)==$($pipVersion)" --disable-pip-version-check
|