Skip to content

Commit 7abf197

Browse files
author
Robin Stolpe
committed
Fixed winget param was not valide
1 parent 72551c1 commit 7abf197

6 files changed

Lines changed: 6 additions & 9 deletions

File tree

.src/private/function/Confirm-RSWinGet.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
[Parameter(Mandatory = $true, HelpMessage = "The headers and API version for the GitHub API")]
3838
[hashtable]$GithubHeaders,
3939
[Parameter(Mandatory = $false, HelpMessage = "Information about the installed version of WinGet")]
40-
[string]$WinGet
40+
$WinGet
4141
)
4242

4343
if ($WinGet -eq "No") {

Help/Confirm-RSWinGet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SYNOPSIS
88

99

1010
SYNTAX
11-
Confirm-RSWinGet [-GitHubUrl] <String> [-GithubHeaders] <Hashtable> [[-WinGet] <String>] [<CommonParameters>]
11+
Confirm-RSWinGet [-GitHubUrl] <String> [-GithubHeaders] <Hashtable> [[-WinGet] <Object>] [<CommonParameters>]
1212

1313

1414
DESCRIPTION
@@ -35,7 +35,7 @@ PARAMETERS
3535
Accept pipeline input? false
3636
Accept wildcard characters? false
3737

38-
-WinGet <String>
38+
-WinGet <Object>
3939

4040
Required? false
4141
Position? 3

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ This module will let you update your installed software with WinGet, many of the
88
This module is perfect for people like me that are to lazy to update every singel software all the time, it's much easier to just run a PowerShell Script.
99
I have added the result from PSScriptAnalyzer in [test folder](https://github.com/rstolpe/WinSoftwareUpdate/tree/main/test) I have some ShouldProcess warnings in this module but that's nothing to worry about really.
1010

11-
# Note
12-
This module are only supported with PowerShell 5.1 because of limitation for the Appx module.
13-
1411
## This module can do the following
1512
- Check what platform your currently running and adapt the downloads for that, if your running x86, amd64, arm64.
1613
- Make sure that you have WinGet installed and up to date, if it's not the module will install / update it for you to the latest version.

RSModuleBuilder.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[string]$Author = "Robin Stolpe"
55
[string]$Mail = "robin@stolpe.io"
66
[string]$Website = "https://stolpe.io"
7-
[string]$preRelease = "beta"
7+
[string]$preRelease = "beta2"
88
[string]$Company = "Stolpe.io"
99
[string]$apiKey = ""
1010
#

WinSoftwareUpdate/WinSoftwareUpdate.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
ReleaseNotes = 'https://github.com/rstolpe/WinSoftwareUpdate/releases'
135135

136136
# Prerelease string of this module
137-
Prerelease = 'beta'
137+
Prerelease = 'beta2'
138138

139139
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
140140
RequireLicenseAcceptance = $false

WinSoftwareUpdate/WinSoftwareUpdate.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Function Confirm-RSWinGet {
140140
[Parameter(Mandatory = $true, HelpMessage = "The headers and API version for the GitHub API")]
141141
[hashtable]$GithubHeaders,
142142
[Parameter(Mandatory = $false, HelpMessage = "Information about the installed version of WinGet")]
143-
[string]$WinGet
143+
$WinGet
144144
)
145145

146146
if ($WinGet -eq "No") {

0 commit comments

Comments
 (0)