Skip to content

Commit 3404db7

Browse files
committed
(maint) Fix chocolatey package install script
There were a couple of typos for parameters, and also switch to Join-Path to build the path to the module zip archive
1 parent 184ca25 commit 3404db7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/nuget/NexuShell.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<authors>Stephen Valdinger</authors>
1111
<projectUrl>https://github.com/steviecoaster/NexuShell</projectUrl>
1212
<projectSourceUrl>https://github.com/steviecoaster/NexuShell</projectSourceUrl>
13-
<iconUrl></iconUrl>
13+
<iconUrl>https://cdn.jsdelivr.net/gh/steviecoaster/NexuShell@develop/logo/nexushell.svg</iconUrl>
1414
<copyright>(c) 2021 steviecoaster. All rights reserved.</copyright>
1515
<docsUrl>https://steviecoaster.dev/NexuShell/</docsUrl>
1616
<bugTrackerUrl>https://github.com/steviecoaster/NexuShell/issues</bugTrackerUrl>

src/nuget/tools/chocolateyInstall.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (Test-Path -Path $savedParamsPath) {
1717
Remove-Item -Path $savedParamsPath -Force
1818
}
1919

20-
$sourcePath = Convert-Path $toolsDir\$ModuleName.*.zip
20+
$sourcePath = Join-Path $toolsDir -ChildPath "$($ModuleName).zip"
2121
$destinationPath = @()
2222

2323
$PathSegment = @{
@@ -30,14 +30,14 @@ $PathSegment = @{
3030

3131
$Parameters = Get-PackageParameters
3232

33-
if (-not $Parameters.ContainsKey('Windows') -and -not $Parameter.ContainsKey('Core')) {
33+
if (-not $Parameters.ContainsKey('Windows') -and -not $Parameters.ContainsKey('Core')) {
3434
$Parameters += @{
3535
Windows = $PSVersionTable.PSVersion.Major -le 5
3636
Core = $PSVersionTable.PSVersion.Major -gt 5
3737
}
3838
}
3939

40-
if (-not $Parameters.ContainsKey('AllUsers') -and -not $Parameter.ContainsKey('CurrentUser')) {
40+
if (-not $Parameters.ContainsKey('AllUsers') -and -not $Parameters.ContainsKey('CurrentUser')) {
4141
$Parameters += @{
4242
AllUsers = Test-ProcessAdminRights
4343
CurrentUser = -not (Test-ProcessAdminRights)

0 commit comments

Comments
 (0)