Skip to content

Commit b668696

Browse files
committed
Fix missing argument in call to Add-ToEnvironmentPath.
1 parent 7d10daa commit b668696

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

winget-install.ps1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<#PSScriptInfo
22
3-
.VERSION 5.0.2
3+
.VERSION 5.0.3
44
55
.GUID 3b581edb-5d90-4fa1-ba15-4f2377275463
66
@@ -54,6 +54,7 @@
5454
[Version 5.0.0] - Completely changed method to use winget-cli Repair-WingetPackageManager. Added environment path detection and addition if needed. Added NoExit parameter to prevent script from exiting after completion. Adjusted permissions of winget folder path for Server 2019. Improved exit handling to avoid PowerShell window closing.
5555
[Version 5.0.1] - Fix typo in variable name.
5656
[Version 5.0.2] - Added detection of NuGet and PowerShell version to determine if package provider installation is needed.
57+
[Version 5.0.3] - Fix missing argument in call to Add-ToEnvironmentPath.
5758
5859
#>
5960

@@ -85,7 +86,7 @@ This script is designed to be straightforward and easy to use, removing the hass
8586
.PARAMETER Help
8687
Displays the full help information for the script.
8788
.NOTES
88-
Version : 5.0.2
89+
Version : 5.0.3
8990
Created by : asheroto
9091
.LINK
9192
Project Site: https://github.com/asheroto/winget-install
@@ -103,7 +104,7 @@ param (
103104
)
104105

105106
# Script information
106-
$CurrentVersion = '5.0.2'
107+
$CurrentVersion = '5.0.3'
107108
$RepoOwner = 'asheroto'
108109
$RepoName = 'winget-install'
109110
$PowerShellGalleryName = 'winget-install'
@@ -711,7 +712,10 @@ function Path-ExistsInEnvironment {
711712

712713
function Add-ToEnvironmentPath {
713714
param (
715+
[Parameter(Mandatory=$true)]
714716
[string]$PathToAdd,
717+
718+
[Parameter(Mandatory=$true)]
715719
[ValidateSet('User', 'System')]
716720
[string]$Scope
717721
)

0 commit comments

Comments
 (0)