Skip to content

Commit

Permalink
Update to v1.3 🌠
Browse files Browse the repository at this point in the history
  • Loading branch information
blakedrumm authored Dec 1, 2024
1 parent 9a6019a commit 75fd5d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Start-ScriptAutoUpdater.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# The GitHub API URL to fetch the latest release information
[string]$RepoURL = 'https://api.github.com/repos/microsoft/MicrosoftSupportLogs/releases/latest',
# The name of the script file to update
[string]$ScriptName = 'Generate-Microsoft-Support-Logs.ps1',
[string]$ScriptName = 'Generate-Microsoft-Support-Logs*.ps1',
# The pattern to match the asset in the release assets
[string]$AssetPattern = 'Generate-Microsoft-Support-Logs.ps1*'
[string]$AssetPattern = 'Generate-Microsoft-Support-Logs.zip*'
)
BEGIN {
# Function to generate a timestamp for log messages
Expand Down Expand Up @@ -163,7 +163,7 @@
if ([version]$scriptVersion -gt [version]$latestReleaseVersion) {
# If the local version is newer than the latest release, it's a development build
$status = "DEVELOPMENT BUILD"
$message = "You are currently on a development build of $($content.Name) last modified on $(($scriptContent | Select-String -Pattern 'Last Modified: (.*)' | ForEach-Object { $_.Matches[0].Groups[1].Value }).Trim())"
$message = "You are currently on a development build of $($content.Name) last modified on $(($scriptContent | Select-String -Pattern 'Last Modified: (.*)' | ForEach-Object { $_.Matches[0].Groups[1].Value } | Select-Object -First 1).Trim())"

# Display the status message with yellow header color
Show-VersionStatus -Status $status -Message $message -HeaderColor Yellow -ContentColor White
Expand Down Expand Up @@ -230,4 +230,4 @@
}
}
# Invoke the auto-updater function to check for updates and handle accordingly
Invoke-AutoUpdater
Invoke-AutoUpdater

0 comments on commit 75fd5d1

Please sign in to comment.