Skip to content

Commit 7c0f8c0

Browse files
author
Robin Stolpe
committed
update help etc
1 parent 43a581f commit 7c0f8c0

10 files changed

Lines changed: 9 additions & 7 deletions

.src/public/function/Update-RSWinSoftware.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@
8181

8282
# Starts to check for updates of the installed software
8383
Start-RSWinGet
84-
84+
8585
Write-OutPut "`n=== \\\ Script Finished /// ===`n"
8686
}

WinSoftwareUpdate/WinSoftwareUpdate.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#
2828
# Generated by: Robin Stolpe
2929
#
30-
# Generated on: 2023-01-18
30+
# Generated on: 2023-01-19
3131
#
3232

3333
@{
@@ -36,7 +36,7 @@
3636
RootModule = '.\WinSoftwareUpdate.psm1'
3737

3838
# Version number of this module.
39-
ModuleVersion = '0.1.3'
39+
ModuleVersion = '0.1.4'
4040

4141
# Supported PSEditions
4242
# CompatiblePSEditions = @()

WinSoftwareUpdate/WinSoftwareUpdate.psm1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Function Update-RSWinSoftware {
8787
# Importing appx with -usewindowspowershell if your using PowerShell 7 or higher
8888
if ($PSVersionTable.PSVersion.Major -ge 7) {
8989
import-module appx -usewindowspowershell
90-
Write-Output "== This messages is expected if you are using PowerShell 7 or higher =="
90+
Write-Output "`n=== This messages is expected if you are using PowerShell 7 or higher ===`n"
9191
}
9292

9393
# Getting system information
@@ -104,6 +104,8 @@ Function Update-RSWinSoftware {
104104

105105
# Starts to check for updates of the installed software
106106
Start-RSWinGet
107+
108+
Write-OutPut "`n=== \\\ Script Finished /// ===`n"
107109
}
108110
Function Confirm-RSWinGet {
109111
<#
@@ -151,7 +153,7 @@ Function Confirm-RSWinGet {
151153
Write-Output "WinGet is not installed, downloading and installing WinGet..."
152154
}
153155
else {
154-
Write-Output "Checking if it's any newer version of WinGet to download and install..."
156+
Write-OutPut "Checking if it's any newer version of WinGet to download and install..."
155157
}
156158

157159
# Collecting information from GitHub regarding latest version of WinGet
@@ -186,7 +188,7 @@ Function Confirm-RSWinGet {
186188
Write-Output "WinGet has a newer version $($GitHubInfo.Tag), downloading and installing it..."
187189
Invoke-WebRequest -UseBasicParsing -Uri $GitHubInfo.DownloadUrl -OutFile $GitHubInfo.OutFile
188190

189-
Write-Output "Installing version $($GitHubInfo.Tag) of WinGet..."
191+
Write-Verbose "Installing version $($GitHubInfo.Tag) of WinGet..."
190192
Add-AppxPackage $($GitHubInfo.OutFile)
191193
}
192194
else {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/PSScriptAnalyzer_Update-RSWinSoftware_2023-01-18.md renamed to test/PSScriptAnalyzer_Update-RSWinSoftware_2023-01-19.md

File renamed without changes.

test/PSScriptAnalyzer_WinSoftwareUpdate.psd1_2023-01-18.md renamed to test/PSScriptAnalyzer_WinSoftwareUpdate.psd1_2023-01-19.md

File renamed without changes.

test/PSScriptAnalyzer_WinSoftwareUpdate.psm1_2023-01-18.md renamed to test/PSScriptAnalyzer_WinSoftwareUpdate.psm1_2023-01-19.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RuleSuppressionID :
1111
SuggestedCorrections :
1212
IsSuppressed : False
1313

14-
Line : 312
14+
Line : 314
1515
Column : 10
1616
Message : Function 'Start-RSWinGet' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
1717
Extent : Start-RSWinGet

0 commit comments

Comments
 (0)