Skip to content

Commit 6fa9cee

Browse files
author
Robin Stolpe
committed
fixed version checker bug
1 parent b477160 commit 6fa9cee

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
}
7575

7676
# Checking if the installed version of WinGet are the same as the latest version of WinGet
77-
if ($WinGet -le $GitHubInfo.Tag) {
77+
if ($WinGet -lt $GitHubInfo.Tag) {
7878
Write-Output "WinGet has a newer version $($GitHubInfo.Tag), downloading and installing it..."
7979
Invoke-WebRequest -UseBasicParsing -Uri $GitHubInfo.DownloadUrl -OutFile $GitHubInfo.OutFile
8080

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
Write-Output "Making sure that WinGet has the latest source list"
2424
WinGet.exe source update
2525

26-
Write-OutPut "Checks if any softwares needs to be updated"
26+
Write-OutPut "Checks if any softwares needs to be updated`n"
2727
try {
2828
WinGet.exe upgrade --all --silent --accept-source-agreements --include-unknown
2929
Write-Output "Everything is now completed, you can close this window"

RSModuleBuilder.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[string]$apiKey = ""
1010
#
1111
# Changes on every build
12-
[string]$Version = "0.0.8"
12+
[string]$Version = "0.0.9"
1313
[string]$PowerShellVersion = "5.1"
1414
[string]$Tags = '"windows", "maintenance", "autoupdate", "autoupdate-script", "psmodule", "update", "winget", "windows10", "windows11"'
1515
[string]$ProcessorArchitecture = ""

WinSoftwareUpdate/WinSoftwareUpdate.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
RootModule = '.\WinSoftwareUpdate.psm1'
3737

3838
# Version number of this module.
39-
ModuleVersion = '0.0.8'
39+
ModuleVersion = '0.0.9'
4040

4141
# Supported PSEditions
4242
# CompatiblePSEditions = @()

WinSoftwareUpdate/WinSoftwareUpdate.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Function Confirm-RSWinGet {
177177
}
178178

179179
# Checking if the installed version of WinGet are the same as the latest version of WinGet
180-
if ($WinGet -le $GitHubInfo.Tag) {
180+
if ($WinGet -lt $GitHubInfo.Tag) {
181181
Write-Output "WinGet has a newer version $($GitHubInfo.Tag), downloading and installing it..."
182182
Invoke-WebRequest -UseBasicParsing -Uri $GitHubInfo.DownloadUrl -OutFile $GitHubInfo.OutFile
183183

@@ -328,7 +328,7 @@ Function Start-RSWinGet {
328328
Write-Output "Making sure that WinGet has the latest source list"
329329
WinGet.exe source update
330330

331-
Write-OutPut "Checks if any softwares needs to be updated"
331+
Write-OutPut "Checks if any softwares needs to be updated`n"
332332
try {
333333
WinGet.exe upgrade --all --silent --accept-source-agreements --include-unknown
334334
Write-Output "Everything is now completed, you can close this window"

0 commit comments

Comments
 (0)