Skip to content

Commit 81aa4d7

Browse files
committed
Merge pull request scriptcs#937 from adamralph/936
fix install script for choco < v0.9.8.33
2 parents b0eb547 + 8efeb6a commit 81aa4d7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

build/ScriptCs.Version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup>
66
<MajorVersion>0</MajorVersion>
77
<MinorVersion>13</MinorVersion>
8-
<PatchVersion>2</PatchVersion>
8+
<PatchVersion>3</PatchVersion>
99

1010
<!-- Change this to set the build quality of the project. Use values like "alpha", "beta", "rc1", "rtm", etc. -->
1111
<!-- These values are used in SemVer, so make sure to always increase these alphabetically. -->

src/ScriptCs/Properties/chocolateyInstall.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
# https://github.com/chocolatey/chocolatey/issues/97
3636
$envPath = $env:PATH
3737
if ($envPath.ToLower().Contains($_.ToLower())) {
38-
$userPath = Get-EnvironmentVariable -Name 'Path' -Scope "User"
38+
$userPath = [Environment]::GetEnvironmentVariable("Path","User")
3939
if($userPath) {
4040
$actualPath = [System.Collections.ArrayList]($userPath).Split(";")
4141
$actualPath.Remove($_)
4242
$newPath = $actualPath -Join ";"
43-
Set-EnvironmentVariable -Name 'Path' -Value $newPath -Scope "User"
43+
[Environment]::SetEnvironmentVariable("Path", $newPath, "User")
4444
}
4545
}
4646

0 commit comments

Comments
 (0)